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:
		| @@ -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; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Chad Little
					Chad Little