Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14039505
D13800.id33328.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
D13800.id33328.diff
View Options
diff --git a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
--- a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
+++ b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
@@ -362,11 +362,23 @@
case PhabricatorTransactions::TYPE_COMMENT:
$comment = $this->getComment();
if ($comment && $comment->getIsRemoved()) {
- return 'fa-eraser';
+ return 'fa-trash';
}
return 'fa-comment';
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
- return 'fa-envelope';
+ $old = $this->getOldValue();
+ $new = $this->getNewValue();
+ $add = array_diff($new, $old);
+ $rem = array_diff($old, $new);
+ if ($add && $rem) {
+ return 'fa-user';
+ } else if ($add) {
+ return 'fa-user-plus';
+ } else if ($rem) {
+ return 'fa-user-times';
+ } else {
+ return 'fa-user';
+ }
case PhabricatorTransactions::TYPE_VIEW_POLICY:
case PhabricatorTransactions::TYPE_EDIT_POLICY:
case PhabricatorTransactions::TYPE_JOIN_POLICY:
@@ -416,6 +428,21 @@
return 'red';
}
break;
+ case PhabricatorTransactions::TYPE_SUBSCRIBERS:
+ $old = $this->getOldValue();
+ $new = $this->getNewValue();
+ $add = array_diff($new, $old);
+ $rem = array_diff($old, $new);
+ if ($add && $rem) {
+ return 'green';
+ } else if ($add) {
+ return 'green';
+ } else if ($rem) {
+ return 'black';
+ } else {
+ return null;
+ }
+ break;
}
return null;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 12, 5:49 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6749257
Default Alt Text
D13800.id33328.diff (1 KB)
Attached To
Mode
D13800: Add user icons / colors for subscriber transactions
Attached
Detach File
Event Timeline
Log In to Comment