1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Add icon / grey text when task is closed on workboards

Summary: Fixes T10281. Adds the closed icon (resolved, dupe, ect) as an attribute and makes the text grey again.

Test Plan:
View workboard with "All Tasks"

{F1092738}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T10281

Differential Revision: https://secure.phabricator.com/D15187
This commit is contained in:
Chad Little 2016-02-05 16:05:41 +00:00 committed by chad
parent c01f23adfb
commit b9585f29fa
3 changed files with 18 additions and 2 deletions

View file

@ -154,7 +154,7 @@ return array(
'rsrc/css/phui/phui-timeline-view.css' => '2efceff8',
'rsrc/css/phui/phui-two-column-view.css' => 'c75bfc5b',
'rsrc/css/phui/workboards/phui-workboard.css' => 'b07a5524',
'rsrc/css/phui/workboards/phui-workcard.css' => '0d1aa006',
'rsrc/css/phui/workboards/phui-workcard.css' => 'b4322ca7',
'rsrc/css/phui/workboards/phui-workpanel.css' => '68140031',
'rsrc/css/sprite-login.css' => '60e8560e',
'rsrc/css/sprite-menu.css' => '9dd65b92',
@ -831,7 +831,7 @@ return array(
'phui-timeline-view-css' => '2efceff8',
'phui-two-column-view-css' => 'c75bfc5b',
'phui-workboard-view-css' => 'b07a5524',
'phui-workcard-view-css' => '0d1aa006',
'phui-workcard-view-css' => 'b4322ca7',
'phui-workpanel-view-css' => '68140031',
'phuix-action-list-view' => 'b5c256b8',
'phuix-action-view' => '8cf6d262',

View file

@ -84,6 +84,14 @@ final class ProjectBoardTaskCard extends Phobject {
$card->addHandleIcon($owner, $owner->getName());
}
if ($task->isClosed()) {
$icon = ManiphestTaskStatus::getStatusIcon($task->getStatus());
$icon = id(new PHUIIconView())
->setIcon($icon.' grey');
$card->addAttribute($icon);
$card->setBarColor('grey');
}
$project_handles = $this->getProjectHandles();
if ($project_handles) {
$tag_list = id(new PHUIHandleTagListView())

View file

@ -41,6 +41,14 @@
margin-left: 2px;
}
.phui-object-item-disabled.phui-workcard {
background-color: rgba(255,255,255,.67);
}
.phui-object-item-disabled.phui-workcard .phui-object-item-link {
color: {$greytext};
}
.device-desktop .phui-workcard .phui-object-item-with-1-actions
.phui-object-item-content-box {
margin-right: 0;