Page MenuHomePhorge

D25987.1746456555.diff
No OneTemporary

D25987.1746456555.diff

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,9 @@
->setSubtitle($subtitle)
->setTokenIcon('fa-user');
}
+ if ($user->getIsSystemAgent()) {
+ $handle->setSystemAgent(true);
+ }
$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

Mime Type
text/plain
Expires
Mon, May 5, 14:49 (19 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1488375
Default Alt Text
D25987.1746456555.diff (1 KB)

Event Timeline