Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3955926
D25987.1746472480.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25987.1746472480.diff
View Options
diff --git a/src/applications/people/phid/PhabricatorPeopleUserPHIDType.php b/src/applications/people/phid/PhabricatorPeopleUserPHIDType.php
--- a/src/applications/people/phid/PhabricatorPeopleUserPHIDType.php
+++ b/src/applications/people/phid/PhabricatorPeopleUserPHIDType.php
@@ -62,6 +62,7 @@
->setSubtitle($subtitle)
->setTokenIcon('fa-user');
}
+ $handle->setSystemAgent($user->getIsSystemAgent());
$availability = null;
if ($user->getIsDisabled()) {
diff --git a/src/applications/phid/PhabricatorObjectHandle.php b/src/applications/phid/PhabricatorObjectHandle.php
--- a/src/applications/phid/PhabricatorObjectHandle.php
+++ b/src/applications/phid/PhabricatorObjectHandle.php
@@ -25,6 +25,7 @@
private $timestamp;
private $status = self::STATUS_OPEN;
private $availability = self::AVAILABILITY_FULL;
+ private $systemAgent = false;
private $complete;
private $objectName;
private $policyFiltered;
@@ -283,6 +284,15 @@
return $this->getType();
}
+ public function setSystemAgent($system_agent) {
+ $this->systemAgent = $system_agent;
+ return $this;
+ }
+
+ public function getSystemAgent() {
+ return $this->systemAgent;
+ }
+
/**
* Set whether or not the underlying object is complete. See
@@ -367,6 +377,9 @@
if ($this->getType() == PhabricatorPeopleUserPHIDType::TYPECONST) {
$classes[] = 'phui-link-person';
}
+ if ($this->getSystemAgent()) {
+ $classes[] = 'phui-system-agent';
+ }
$uri = $this->getURI();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 5, 19:14 (19 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1486786
Default Alt Text
D25987.1746472480.diff (1 KB)
Attached To
Mode
D25987: Add CSS class to object handle if user object is system agent
Attached
Detach File
Event Timeline
Log In to Comment