Page MenuHomePhabricator

D13729.id.diff
No OneTemporary

D13729.id.diff

diff --git a/src/view/phui/PHUIBadgeMiniView.php b/src/view/phui/PHUIBadgeMiniView.php
--- a/src/view/phui/PHUIBadgeMiniView.php
+++ b/src/view/phui/PHUIBadgeMiniView.php
@@ -6,6 +6,7 @@
private $icon;
private $quality;
private $header;
+ private $tipDirection;
public function setIcon($icon) {
$this->icon = $icon;
@@ -27,6 +28,11 @@
return $this;
}
+ public function setTipDirection($direction) {
+ $this->tipDirection = $direction;
+ return $this;
+ }
+
protected function getTagName() {
if ($this->href) {
return 'a';
@@ -51,6 +57,8 @@
'href' => $this->href,
'meta' => array(
'tip' => $this->header,
+ 'align' => $this->tipDirection,
+ 'size' => 300,
),
);
}
diff --git a/src/view/phui/PHUITimelineView.php b/src/view/phui/PHUITimelineView.php
--- a/src/view/phui/PHUITimelineView.php
+++ b/src/view/phui/PHUITimelineView.php
@@ -255,6 +255,7 @@
->setIcon($badge->getIcon())
->setQuality($badge->getQuality())
->setHeader($badge->getName())
+ ->setTipDirection('E')
->setHref('/badges/view/'.$badge->getID());
$event->addBadge($badge_view);

File Metadata

Mime Type
text/plain
Expires
Oct 15 2024, 9:46 AM (5 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712424
Default Alt Text
D13729.id.diff (1 KB)

Event Timeline