1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02: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:
Anh Nhan Nguyen 2013-04-02 08:59:14 -07:00 committed by epriestley
parent f46e3badae
commit 37b86b91b9
2 changed files with 9 additions and 9 deletions

View file

@ -49,6 +49,14 @@ abstract class PhrictionController extends PhabricatorController {
public function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
if (get_class($this) != 'PhrictionListController') {
$crumbs->addAction(
id(new PhabricatorMenuItemView())
->setName(pht('Document Index'))
->setHref('/phriction/')
->setIcon('transcript'));
}
$crumbs->addAction(
id(new PhabricatorMenuItemView())
->setName(pht('Create Document'))

View file

@ -132,13 +132,6 @@ final class PhrictionDocumentController
$handles[$project_phid]->renderLink()));
}
$index_link = phutil_tag(
'a',
array(
'href' => '/phriction/',
),
pht('Document Index'));
$subscriber_view = null;
if ($subscribers) {
$subcriber_list = array();
@ -219,8 +212,7 @@ final class PhrictionDocumentController
}
$page_content = hsprintf(
'<div class="phriction-content">%s%s%s%s</div>',
$index_link,
'<div class="phriction-content">%s%s%s</div>',
$byline,
$move_notice,
$core_content);