mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 13:00:56 +01:00
Adding Phriction 'Document Index' link to the crumbs actions
Summary: removed references to doc index from document controller / content display / whatever name it currently has Refs T2686 Test Plan: saw it - touched it - tested it Reviewers: epriestley, chad Reviewed By: chad CC: aran, Korvin Maniphest Tasks: T2686 Differential Revision: https://secure.phabricator.com/D5342 Conflicts: src/applications/phriction/controller/PhrictionDocumentController.php
This commit is contained in:
parent
f46e3badae
commit
37b86b91b9
2 changed files with 9 additions and 9 deletions
|
@ -49,6 +49,14 @@ abstract class PhrictionController extends PhabricatorController {
|
||||||
public function buildApplicationCrumbs() {
|
public function buildApplicationCrumbs() {
|
||||||
$crumbs = parent::buildApplicationCrumbs();
|
$crumbs = parent::buildApplicationCrumbs();
|
||||||
|
|
||||||
|
if (get_class($this) != 'PhrictionListController') {
|
||||||
|
$crumbs->addAction(
|
||||||
|
id(new PhabricatorMenuItemView())
|
||||||
|
->setName(pht('Document Index'))
|
||||||
|
->setHref('/phriction/')
|
||||||
|
->setIcon('transcript'));
|
||||||
|
}
|
||||||
|
|
||||||
$crumbs->addAction(
|
$crumbs->addAction(
|
||||||
id(new PhabricatorMenuItemView())
|
id(new PhabricatorMenuItemView())
|
||||||
->setName(pht('Create Document'))
|
->setName(pht('Create Document'))
|
||||||
|
|
|
@ -132,13 +132,6 @@ final class PhrictionDocumentController
|
||||||
$handles[$project_phid]->renderLink()));
|
$handles[$project_phid]->renderLink()));
|
||||||
}
|
}
|
||||||
|
|
||||||
$index_link = phutil_tag(
|
|
||||||
'a',
|
|
||||||
array(
|
|
||||||
'href' => '/phriction/',
|
|
||||||
),
|
|
||||||
pht('Document Index'));
|
|
||||||
|
|
||||||
$subscriber_view = null;
|
$subscriber_view = null;
|
||||||
if ($subscribers) {
|
if ($subscribers) {
|
||||||
$subcriber_list = array();
|
$subcriber_list = array();
|
||||||
|
@ -219,8 +212,7 @@ final class PhrictionDocumentController
|
||||||
}
|
}
|
||||||
|
|
||||||
$page_content = hsprintf(
|
$page_content = hsprintf(
|
||||||
'<div class="phriction-content">%s%s%s%s</div>',
|
'<div class="phriction-content">%s%s%s</div>',
|
||||||
$index_link,
|
|
||||||
$byline,
|
$byline,
|
||||||
$move_notice,
|
$move_notice,
|
||||||
$core_content);
|
$core_content);
|
||||||
|
|
Loading…
Reference in a new issue