@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+19 -13
+19 -13
src/applications/diffusion/controller/DiffusionRepositoryController.php
··· 359 359 $handles = $this->loadViewerHandles($phids); 360 360 $view->setHandles($handles); 361 361 362 - $panel = id(new AphrontPanelView()) 363 - ->setHeader(pht('Tags')) 364 - ->setNoBackground(true); 362 + $panel = new PHUIObjectBoxView(); 363 + $header = new PHUIHeaderView(); 364 + $header->setHeader(pht('Tags')); 365 365 366 366 if ($more_tags) { 367 - $panel->setCaption(pht('Showing the %d most recent tags.', $tag_limit)); 367 + $header->setSubHeader( 368 + pht('Showing the %d most recent tags.', $tag_limit)); 368 369 } 369 370 370 - $panel->addButton( 371 - phutil_tag( 372 - 'a', 373 - array( 374 - 'href' => $drequest->generateURI( 371 + $icon = id(new PHUIIconView()) 372 + ->setSpriteSheet(PHUIIconView::SPRITE_ICONS) 373 + ->setSpriteIcon('tag'); 374 + 375 + $button = new PHUIButtonView(); 376 + $button->setText(pht("Show All Tags")); 377 + $button->setTag('a'); 378 + $button->setIcon($icon); 379 + $button->setHref($drequest->generateURI( 375 380 array( 376 381 'action' => 'tags', 377 - )), 378 - 'class' => 'grey button', 379 - ), 380 - pht("Show All Tags \xC2\xBB"))); 382 + ))); 383 + 384 + $header->addActionLink($button); 385 + 386 + $panel->setHeader($header); 381 387 $panel->appendChild($view); 382 388 383 389 return $panel;