mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 15:22:41 +01:00
Add PHUIObjectBoxView to Diffusion Tags
Summary: Boxes for everyone Test Plan: Tested on libphutil locally Reviewers: epriestley Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8015
This commit is contained in:
parent
75e7224c8a
commit
35ffcf6e42
1 changed files with 19 additions and 13 deletions
|
@ -359,25 +359,31 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||||
$handles = $this->loadViewerHandles($phids);
|
$handles = $this->loadViewerHandles($phids);
|
||||||
$view->setHandles($handles);
|
$view->setHandles($handles);
|
||||||
|
|
||||||
$panel = id(new AphrontPanelView())
|
$panel = new PHUIObjectBoxView();
|
||||||
->setHeader(pht('Tags'))
|
$header = new PHUIHeaderView();
|
||||||
->setNoBackground(true);
|
$header->setHeader(pht('Tags'));
|
||||||
|
|
||||||
if ($more_tags) {
|
if ($more_tags) {
|
||||||
$panel->setCaption(pht('Showing the %d most recent tags.', $tag_limit));
|
$header->setSubHeader(
|
||||||
|
pht('Showing the %d most recent tags.', $tag_limit));
|
||||||
}
|
}
|
||||||
|
|
||||||
$panel->addButton(
|
$icon = id(new PHUIIconView())
|
||||||
phutil_tag(
|
->setSpriteSheet(PHUIIconView::SPRITE_ICONS)
|
||||||
'a',
|
->setSpriteIcon('tag');
|
||||||
array(
|
|
||||||
'href' => $drequest->generateURI(
|
$button = new PHUIButtonView();
|
||||||
|
$button->setText(pht("Show All Tags"));
|
||||||
|
$button->setTag('a');
|
||||||
|
$button->setIcon($icon);
|
||||||
|
$button->setHref($drequest->generateURI(
|
||||||
array(
|
array(
|
||||||
'action' => 'tags',
|
'action' => 'tags',
|
||||||
)),
|
)));
|
||||||
'class' => 'grey button',
|
|
||||||
),
|
$header->addActionLink($button);
|
||||||
pht("Show All Tags \xC2\xBB")));
|
|
||||||
|
$panel->setHeader($header);
|
||||||
$panel->appendChild($view);
|
$panel->appendChild($view);
|
||||||
|
|
||||||
return $panel;
|
return $panel;
|
||||||
|
|
Loading…
Reference in a new issue