@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 tipDirection to PHUIBadgeMiniView

Summary: Makes PHUIBadgeMiniView a little easier to dictate layout. Apply in Timeline.

Test Plan: Tested supercalifragilisticexpialidocious as a badge, saw it align properly.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

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

+9
+8
src/view/phui/PHUIBadgeMiniView.php
··· 6 6 private $icon; 7 7 private $quality; 8 8 private $header; 9 + private $tipDirection; 9 10 10 11 public function setIcon($icon) { 11 12 $this->icon = $icon; ··· 24 25 25 26 public function setHeader($header) { 26 27 $this->header = $header; 28 + return $this; 29 + } 30 + 31 + public function setTipDirection($direction) { 32 + $this->tipDirection = $direction; 27 33 return $this; 28 34 } 29 35 ··· 51 57 'href' => $this->href, 52 58 'meta' => array( 53 59 'tip' => $this->header, 60 + 'align' => $this->tipDirection, 61 + 'size' => 300, 54 62 ), 55 63 ); 56 64 }
+1
src/view/phui/PHUITimelineView.php
··· 255 255 ->setIcon($badge->getIcon()) 256 256 ->setQuality($badge->getQuality()) 257 257 ->setHeader($badge->getName()) 258 + ->setTipDirection('E') 258 259 ->setHref('/badges/view/'.$badge->getID()); 259 260 260 261 $event->addBadge($badge_view);