mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-11 07:11:04 +01:00
Add more "disabled" UI to PHUIObjectItemView
Summary: Brings more UI tweaks to disabled objects, like projects/people. Also fixes a missing icon in projects. Test Plan: Application search with people and projects that have disabled results. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T12732 Differential Revision: https://secure.phabricator.com/D17962
This commit is contained in:
parent
7e46d7ab6a
commit
93e28da76e
4 changed files with 16 additions and 4 deletions
|
@ -9,7 +9,7 @@ return array(
|
||||||
'names' => array(
|
'names' => array(
|
||||||
'conpherence.pkg.css' => 'ff161f2d',
|
'conpherence.pkg.css' => 'ff161f2d',
|
||||||
'conpherence.pkg.js' => 'b5b51108',
|
'conpherence.pkg.js' => 'b5b51108',
|
||||||
'core.pkg.css' => '0ab752b2',
|
'core.pkg.css' => 'd6dc3994',
|
||||||
'core.pkg.js' => 'a0c8fb20',
|
'core.pkg.js' => 'a0c8fb20',
|
||||||
'darkconsole.pkg.js' => '1f9a31bc',
|
'darkconsole.pkg.js' => '1f9a31bc',
|
||||||
'differential.pkg.css' => '52b014e7',
|
'differential.pkg.css' => '52b014e7',
|
||||||
|
@ -131,7 +131,7 @@ return array(
|
||||||
'rsrc/css/phui/object-item/phui-oi-color.css' => 'cd2b9b77',
|
'rsrc/css/phui/object-item/phui-oi-color.css' => 'cd2b9b77',
|
||||||
'rsrc/css/phui/object-item/phui-oi-drag-ui.css' => '08f4ccc3',
|
'rsrc/css/phui/object-item/phui-oi-drag-ui.css' => '08f4ccc3',
|
||||||
'rsrc/css/phui/object-item/phui-oi-flush-ui.css' => '9d9685d6',
|
'rsrc/css/phui/object-item/phui-oi-flush-ui.css' => '9d9685d6',
|
||||||
'rsrc/css/phui/object-item/phui-oi-list-view.css' => '7c8ec27a',
|
'rsrc/css/phui/object-item/phui-oi-list-view.css' => '412bef1a',
|
||||||
'rsrc/css/phui/object-item/phui-oi-simple-ui.css' => 'a8beebea',
|
'rsrc/css/phui/object-item/phui-oi-simple-ui.css' => 'a8beebea',
|
||||||
'rsrc/css/phui/phui-action-list.css' => 'c01858f4',
|
'rsrc/css/phui/phui-action-list.css' => 'c01858f4',
|
||||||
'rsrc/css/phui/phui-action-panel.css' => '91c7b835',
|
'rsrc/css/phui/phui-action-panel.css' => '91c7b835',
|
||||||
|
@ -869,7 +869,7 @@ return array(
|
||||||
'phui-oi-color-css' => 'cd2b9b77',
|
'phui-oi-color-css' => 'cd2b9b77',
|
||||||
'phui-oi-drag-ui-css' => '08f4ccc3',
|
'phui-oi-drag-ui-css' => '08f4ccc3',
|
||||||
'phui-oi-flush-ui-css' => '9d9685d6',
|
'phui-oi-flush-ui-css' => '9d9685d6',
|
||||||
'phui-oi-list-view-css' => '7c8ec27a',
|
'phui-oi-list-view-css' => '412bef1a',
|
||||||
'phui-oi-simple-ui-css' => 'a8beebea',
|
'phui-oi-simple-ui-css' => 'a8beebea',
|
||||||
'phui-pager-css' => '77d8a794',
|
'phui-pager-css' => '77d8a794',
|
||||||
'phui-pinboard-view-css' => '2495140e',
|
'phui-pinboard-view-css' => '2495140e',
|
||||||
|
|
|
@ -265,6 +265,7 @@ final class PhabricatorPeopleSearchEngine
|
||||||
|
|
||||||
if ($user->getIsDisabled()) {
|
if ($user->getIsDisabled()) {
|
||||||
$item->addIcon('fa-ban', pht('Disabled'));
|
$item->addIcon('fa-ban', pht('Disabled'));
|
||||||
|
$item->setDisabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$is_approval) {
|
if (!$is_approval) {
|
||||||
|
|
|
@ -68,7 +68,7 @@ final class PhabricatorProjectListView extends AphrontView {
|
||||||
));
|
));
|
||||||
|
|
||||||
if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ARCHIVED) {
|
if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ARCHIVED) {
|
||||||
$item->addIcon('delete-grey', pht('Archived'));
|
$item->addIcon('fa-ban', pht('Archived'));
|
||||||
$item->setDisabled(true);
|
$item->setDisabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -390,6 +390,17 @@ ul.phui-oi-icons {
|
||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.phui-oi.phui-oi-disabled .phui-oi-image {
|
||||||
|
opacity: .8;
|
||||||
|
-webkit-filter: grayscale(100%);
|
||||||
|
filter: grayscale(100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.phui-oi.phui-oi-disabled .phui-oi-attribute,
|
||||||
|
.phui-oi.phui-oi-disabled .phui-oi-attribute .phui-icon-view {
|
||||||
|
color: {$lightgreytext};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* - Effects -------------------------------------------------------------------
|
/* - Effects -------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue