Move all ListFilter buttons into crumbs
Summary: Maniphest and Owners still have green ListFilter buttons, which have looked awkward for a while and are extra-awkward after D4447. Move them into crumbs and remove the ability of ListFilter to support buttons. The actual implementation can be simplified too now. Test Plan: Looked at Owners, Maniphest. Clicked create buttons. Looked at UIExample. Reviewers: chad Reviewed By: chad CC: aran Differential Revision: https://secure.phabricator.com/D4451
This commit is contained in:
@@ -122,14 +122,6 @@ final class PhabricatorOwnersListController
|
||||
$nodata);
|
||||
|
||||
$filter = new AphrontListFilterView();
|
||||
$filter->addButton(
|
||||
phutil_render_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => '/owners/new/',
|
||||
'class' => 'green button',
|
||||
),
|
||||
'Create New Package'));
|
||||
|
||||
$owners_search_value = array();
|
||||
if ($request->getArr('owner')) {
|
||||
@@ -250,7 +242,7 @@ final class PhabricatorOwnersListController
|
||||
|
||||
$pkg_paths = idx($paths, $package->getID(), array());
|
||||
foreach ($pkg_paths as $key => $path) {
|
||||
$repo = $repositories[$path->getRepositoryPHID()];
|
||||
$repo = idx($repositories, $path->getRepositoryPHID());
|
||||
if ($repo) {
|
||||
$href = DiffusionRequest::generateDiffusionURI(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user