@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.

In standard property lists, render projects with tag UIs

Summary: Ref T2628. There are a few UIs that need updates, but generally I want to show project icons everywhere that we show project names, to more strongly reinforce the ideas of projects being groups/tags/policies/etc.

Test Plan: See screenshot.

Reviewers: chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T2628

Differential Revision: https://secure.phabricator.com/D9709

+28 -2
+12
src/applications/phid/PhabricatorObjectHandle.php
··· 30 30 return $this->getTypeIcon(); 31 31 } 32 32 33 + public function getIconColor() { 34 + return 'bluegrey'; 35 + } 36 + 33 37 public function getTypeIcon() { 34 38 if ($this->getPHIDType()) { 35 39 return $this->getPHIDType()->getTypeIcon(); ··· 253 257 'title' => $title, 254 258 ), 255 259 array($icon, $name)); 260 + } 261 + 262 + public function renderTag() { 263 + return id(new PHUITagView()) 264 + ->setType(PHUITagView::TYPE_OBJECT) 265 + ->setIcon($this->getIcon().' '.$this->getIconColor()) 266 + ->setHref($this->getURI()) 267 + ->setName($this->getLinkName()); 256 268 } 257 269 258 270 public function getLinkName() {
+12 -2
src/applications/project/events/PhabricatorProjectUIEventListener.php
··· 45 45 if ($handles) { 46 46 $list = array(); 47 47 foreach ($handles as $handle) { 48 - $list[] = $handle->renderLink(); 48 + $list[] = phutil_tag( 49 + 'li', 50 + array( 51 + 'class' => 'phabricator-handle-tag-list-item', 52 + ), 53 + $handle->renderTag()); 49 54 } 50 - $list = phutil_implode_html(phutil_tag('br'), $list); 55 + $list = phutil_tag( 56 + 'ul', 57 + array( 58 + 'class' => 'phabricator-handle-tag-list', 59 + ), 60 + $list); 51 61 } else { 52 62 $list = phutil_tag('em', array(), pht('None')); 53 63 }
+4
webroot/rsrc/css/phui/phui-tag-view.css
··· 300 300 a.phui-tag-view:hover.phui-tag-shade-disabled .phui-tag-core { 301 301 border-color: {$sh-disabledborder}; 302 302 } 303 + 304 + .phabricator-handle-tag-list-item + .phabricator-handle-tag-list-item { 305 + margin-top: 4px; 306 + }