Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15455265
D17359.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
D17359.diff
View Options
diff --git a/src/applications/dashboard/customfield/PhabricatorDashboardPanelTabsCustomField.php b/src/applications/dashboard/customfield/PhabricatorDashboardPanelTabsCustomField.php
--- a/src/applications/dashboard/customfield/PhabricatorDashboardPanelTabsCustomField.php
+++ b/src/applications/dashboard/customfield/PhabricatorDashboardPanelTabsCustomField.php
@@ -33,6 +33,49 @@
$this->setFieldValue($value);
}
+ public function getApplicationTransactionTitle(
+ PhabricatorApplicationTransaction $xaction) {
+ $author_phid = $xaction->getAuthorPHID();
+ $old = $xaction->getOldValue();
+ $new = $xaction->getNewValue();
+
+ $new_tabs = array();
+ if ($new) {
+ foreach ($new as $new_tab) {
+ $new_tabs[] = $new_tab['name'];
+ }
+ $new_tabs = implode(' | ', $new_tabs);
+ }
+
+ $old_tabs = array();
+ if ($old) {
+ foreach ($old as $old_tab) {
+ $old_tabs[] = $old_tab['name'];
+ }
+ $old_tabs = implode(' | ', $old_tabs);
+ }
+
+ if (!$old) {
+ // In case someone makes a tab panel with no tabs.
+ if ($new) {
+ return pht(
+ '%s set the tabs to "%s".',
+ $xaction->renderHandleLink($author_phid),
+ $new_tabs);
+ }
+ } else if (!$new) {
+ return pht(
+ '%s removed tabs.',
+ $xaction->renderHandleLink($author_phid));
+ } else {
+ return pht(
+ '%s changed the tabs from "%s" to "%s".',
+ $xaction->renderHandleLink($author_phid),
+ $old_tabs,
+ $new_tabs);
+ }
+ }
+
public function renderEditControl(array $handles) {
// NOTE: This includes archived panels so we don't mutate the tabs
// when saving a tab panel that includes archied panels. This whole UI is
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 30, 11:12 PM (1 w, 9 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712262
Default Alt Text
D17359.diff (1 KB)
Attached To
Mode
D17359: Add more transation data to panel tab changes
Attached
Detach File
Event Timeline
Log In to Comment