mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Give Dashboard query panels a more obvious "View All" button
Summary: Depends on D20333. Ref T13272. Currently, dashboard query panels have an aesthetic but hard-to-see icon to view results, with no text label. Instead, provide an easier-to-see button with a text label. Test Plan: {F6314091} Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13272 Differential Revision: https://secure.phabricator.com/D20334
This commit is contained in:
parent
a68b6cfe65
commit
6b069f26c0
1 changed files with 11 additions and 3 deletions
|
@ -120,10 +120,18 @@ final class PhabricatorDashboardQueryPanelType
|
||||||
$search_engine = $this->getSearchEngine($panel);
|
$search_engine = $this->getSearchEngine($panel);
|
||||||
$key = $panel->getProperty('key');
|
$key = $panel->getProperty('key');
|
||||||
$href = $search_engine->getQueryResultsPageURI($key);
|
$href = $search_engine->getQueryResultsPageURI($key);
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIcon('fa-search')
|
->setIcon('fa-search');
|
||||||
->setHref($href);
|
|
||||||
$header->addActionItem($icon);
|
$button = id(new PHUIButtonView())
|
||||||
|
->setTag('a')
|
||||||
|
->setText(pht('View All'))
|
||||||
|
->setIcon($icon)
|
||||||
|
->setHref($href)
|
||||||
|
->setColor(PHUIButtonView::GREY);
|
||||||
|
|
||||||
|
$header->addActionLink($button);
|
||||||
|
|
||||||
return $header;
|
return $header;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue