Modernize Macro application
Summary: Adds feed, email, notifications, comments, partial editing, subscriptions, enable/disable, flags and crumbs to Macro.
Test Plan:
{F26839}
{F26840}
{F26841}
{F26842}
{F26843}
{F26844}
{F26845}
Reviewers: vrana, btrahan, chad
Reviewed By: vrana
CC: aran
Maniphest Tasks: T2157, T175, T2104
Differential Revision: https://secure.phabricator.com/D4141
This commit is contained in:
@@ -70,8 +70,11 @@ final class PhabricatorMacroListController
|
||||
$filter_view = new AphrontListFilterView();
|
||||
$filter_view->appendChild($filter_form);
|
||||
|
||||
$nav = $this->buildSideNavView();
|
||||
$nav->selectFilter('/');
|
||||
$has_search = strlen($filter);
|
||||
$nav = $this->buildSideNavView(
|
||||
$for_app = false,
|
||||
$has_search);
|
||||
$nav->selectFilter($has_search ? 'search' : '/');
|
||||
|
||||
$nav->appendChild($filter_view);
|
||||
|
||||
@@ -97,7 +100,7 @@ final class PhabricatorMacroListController
|
||||
array(),
|
||||
'Created on '.$datetime));
|
||||
}
|
||||
$item->setURI($this->getApplicationURI('/edit/'.$macro->getID().'/'));
|
||||
$item->setURI($this->getApplicationURI('/view/'.$macro->getID().'/'));
|
||||
$item->setHeader($macro->getName());
|
||||
|
||||
$pinboard->addItem($item);
|
||||
@@ -109,11 +112,20 @@ final class PhabricatorMacroListController
|
||||
$nav->appendChild($list);
|
||||
}
|
||||
|
||||
|
||||
if ($filter === null) {
|
||||
if (!strlen($filter)) {
|
||||
$nav->appendChild($pager);
|
||||
$name = pht('All Macros');
|
||||
} else {
|
||||
$name = pht('Search');
|
||||
}
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumbs->addCrumb(
|
||||
id(new PhabricatorCrumbView())
|
||||
->setName($name)
|
||||
->setHref($request->getRequestURI()));
|
||||
$nav->setCrumbs($crumbs);
|
||||
|
||||
return $this->buildApplicationPage(
|
||||
$nav,
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user