Page MenuHomePhabricator

D16819.diff
No OneTemporary

D16819.diff

diff --git a/src/applications/calendar/storage/PhabricatorCalendarEventInvitee.php b/src/applications/calendar/storage/PhabricatorCalendarEventInvitee.php
--- a/src/applications/calendar/storage/PhabricatorCalendarEventInvitee.php
+++ b/src/applications/calendar/storage/PhabricatorCalendarEventInvitee.php
@@ -76,7 +76,7 @@
'name' => pht('Available'),
),
self::AVAILABILITY_BUSY => array(
- 'color' => 'yellow',
+ 'color' => 'orange',
'name' => pht('Busy'),
),
self::AVAILABILITY_AWAY => array(
diff --git a/src/applications/people/markup/PhabricatorMentionRemarkupRule.php b/src/applications/people/markup/PhabricatorMentionRemarkupRule.php
--- a/src/applications/people/markup/PhabricatorMentionRemarkupRule.php
+++ b/src/applications/people/markup/PhabricatorMentionRemarkupRule.php
@@ -154,7 +154,12 @@
$tag->setDotColor(PHUITagView::COLOR_GREY);
} else {
if ($user->getAwayUntil()) {
- $tag->setDotColor(PHUITagView::COLOR_RED);
+ $away = PhabricatorCalendarEventInvitee::AVAILABILITY_AWAY;
+ if ($user->getDisplayAvailability() == $away) {
+ $tag->setDotColor(PHUITagView::COLOR_RED);
+ } else {
+ $tag->setDotColor(PHUITagView::COLOR_ORANGE);
+ }
}
}
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 12:11 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6715792
Default Alt Text
D16819.diff (1 KB)

Event Timeline