Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14012494
D16475.id39641.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D16475.id39641.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -7,7 +7,7 @@
*/
return array(
'names' => array(
- 'core.pkg.css' => 'ffbade6c',
+ 'core.pkg.css' => 'ad6a3591',
'core.pkg.js' => '2b8af4e4',
'darkconsole.pkg.js' => 'e7393ebb',
'differential.pkg.css' => '3fb7f532',
@@ -148,7 +148,7 @@
'rsrc/css/phui/phui-info-view.css' => '28efab79',
'rsrc/css/phui/phui-list.css' => '9da2aa00',
'rsrc/css/phui/phui-object-box.css' => '6b487c57',
- 'rsrc/css/phui/phui-object-item-list-view.css' => '987db9bf',
+ 'rsrc/css/phui/phui-object-item-list-view.css' => '87278fa0',
'rsrc/css/phui/phui-pager.css' => 'bea33d23',
'rsrc/css/phui/phui-pinboard-view.css' => '2495140e',
'rsrc/css/phui/phui-profile-menu.css' => '8a3fc181',
@@ -858,7 +858,7 @@
'phui-inline-comment-view-css' => '5953c28e',
'phui-list-view-css' => '9da2aa00',
'phui-object-box-css' => '6b487c57',
- 'phui-object-item-list-view-css' => '987db9bf',
+ 'phui-object-item-list-view-css' => '87278fa0',
'phui-pager-css' => 'bea33d23',
'phui-pinboard-view-css' => '2495140e',
'phui-profile-menu-css' => '8a3fc181',
diff --git a/src/applications/config/controller/PhabricatorConfigGroupController.php b/src/applications/config/controller/PhabricatorConfigGroupController.php
--- a/src/applications/config/controller/PhabricatorConfigGroupController.php
+++ b/src/applications/config/controller/PhabricatorConfigGroupController.php
@@ -77,6 +77,24 @@
->setHref('/config/edit/'.$option->getKey().'/')
->addAttribute($summary);
+ $label = pht('Current Value:');
+ $color = null;
+ $db_value = idx($db_values, $option->getKey());
+ if ($db_value && !$db_value->getIsDeleted()) {
+ $item->setEffect('visited');
+ $color = 'violet';
+ $label = pht('Customized Value:');
+ }
+
+ if ($option->getHidden()) {
+ $item->setStatusIcon('fa-eye-slash grey', pht('Hidden'));
+ $item->setDisabled(true);
+ } else if ($option->getLocked()) {
+ $item->setStatusIcon('fa-lock '.$color, pht('Locked'));
+ } else {
+ $item->setStatusIcon('fa-pencil-square-o '.$color, pht('Editable'));
+ }
+
if (!$option->getHidden()) {
$current_value = PhabricatorEnv::getEnvConfig($option->getKey());
$current_value = PhabricatorConfigJSON::prettyPrintJSON(
@@ -87,24 +105,13 @@
'class' => 'config-options-current-value',
),
array(
- phutil_tag('span', array(), pht('Current Value:')),
+ phutil_tag('span', array(), $label),
' '.$current_value,
));
$item->appendChild($current_value);
}
- $db_value = idx($db_values, $option->getKey());
- if ($db_value && !$db_value->getIsDeleted()) {
- $item->addIcon('fa-edit', pht('Customized'));
- }
-
- if ($option->getHidden()) {
- $item->addIcon('fa-eye-slash', pht('Hidden'));
- } else if ($option->getLocked()) {
- $item->addIcon('fa-lock', pht('Locked'));
- }
-
$list->addItem($item);
}
diff --git a/src/view/phui/PHUIObjectItemView.php b/src/view/phui/PHUIObjectItemView.php
--- a/src/view/phui/PHUIObjectItemView.php
+++ b/src/view/phui/PHUIObjectItemView.php
@@ -254,6 +254,9 @@
case 'selected':
$item_classes[] = 'phui-object-item-selected';
break;
+ case 'visited':
+ $item_classes[] = 'phui-object-item-visited';
+ break;
case null:
break;
default:
diff --git a/webroot/rsrc/css/phui/phui-object-item-list-view.css b/webroot/rsrc/css/phui/phui-object-item-list-view.css
--- a/webroot/rsrc/css/phui/phui-object-item-list-view.css
+++ b/webroot/rsrc/css/phui/phui-object-item-list-view.css
@@ -772,6 +772,19 @@
margin-bottom: 8px;
}
+.phui-object-list-big .phui-object-item-col0 {
+ vertical-align: top;
+ padding: 0;
+}
+
+.phui-object-list-big .phui-object-item-status-icon {
+ padding: 5px;
+}
+
+.phui-object-list-big .phui-object-item-visited a.phui-object-item-link {
+ color: {$violet};
+}
+
.device-desktop .phui-object-list-big .phui-object-item-frame:hover {
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 2, 1:37 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6741366
Default Alt Text
D16475.id39641.diff (4 KB)
Attached To
Mode
D16475: Add some icons/color to Config Settings UI
Attached
Detach File
Event Timeline
Log In to Comment