Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13957523
D13729.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13729.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D13729: Add tipDirection to PHUIBadgeMiniView
Attached
Detach File
Event Timeline
Log In to Comment