mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 16:30:59 +01:00
Make task summary views slightly prettier.
Summary: Test Plan: Reviewers: CC:
This commit is contained in:
parent
0d1da3df15
commit
8c7581b148
3 changed files with 38 additions and 3 deletions
|
@ -199,7 +199,7 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'maniphest-task-summary-css' =>
|
||||
array(
|
||||
'uri' => '/res/19a3c543/rsrc/css/application/maniphest/task-summary.css',
|
||||
'uri' => '/res/18c190ab/rsrc/css/application/maniphest/task-summary.css',
|
||||
'type' => 'css',
|
||||
'requires' =>
|
||||
array(
|
||||
|
|
|
@ -36,6 +36,17 @@ class ManiphestTaskSummaryView extends AphrontView {
|
|||
$handles = $this->handles;
|
||||
|
||||
require_celerity_resource('maniphest-task-summary-css');
|
||||
|
||||
$classes = array(
|
||||
ManiphestTaskPriority::PRIORITY_UNBREAK_NOW => 'pri-unbreak',
|
||||
ManiphestTaskPriority::PRIORITY_TRIAGE => 'pri-triage',
|
||||
ManiphestTaskPriority::PRIORITY_HIGH => 'pri-high',
|
||||
ManiphestTaskPriority::PRIORITY_NORMAL => 'pri-normal',
|
||||
ManiphestTaskPriority::PRIORITY_LOW => 'pri-low',
|
||||
ManiphestTaskPriority::PRIORITY_WISH => 'pri-wish',
|
||||
);
|
||||
|
||||
$pri_class = idx($classes, $task->getPriority());
|
||||
|
||||
return
|
||||
'<table class="maniphest-task-summary">'.
|
||||
|
@ -61,6 +72,7 @@ class ManiphestTaskSummaryView extends AphrontView {
|
|||
phutil_escape_html($task->getTitle())).
|
||||
'</td>'.
|
||||
'<td class="maniphest-task-priority">'.
|
||||
'<span class="pri-bullet '.$pri_class.'">'."\xE2\x96\xB6".'</span> '.
|
||||
ManiphestTaskPriority::getTaskPriorityName($task->getPriority()).
|
||||
'</td>'.
|
||||
'<td class="maniphest-task-updated">'.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
.maniphest-task-summary td {
|
||||
padding: 4px 0.5%;
|
||||
background: #dfdfdf;
|
||||
background: #f0f0f0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,6 @@
|
|||
}
|
||||
|
||||
.maniphest-task-summary td.maniphest-task-priority {
|
||||
text-align: center;
|
||||
width: 11%;
|
||||
min-width: 120px;
|
||||
}
|
||||
|
@ -50,6 +49,30 @@
|
|||
min-width: 120px;
|
||||
}
|
||||
|
||||
.maniphest-task-summary .pri-bullet {
|
||||
}
|
||||
|
||||
.maniphest-task-summary .pri-unbreak {
|
||||
color: #aa0000;
|
||||
}
|
||||
|
||||
.maniphest-task-summary .pri-triage {
|
||||
color: #dd00dd;
|
||||
}
|
||||
.maniphest-task-summary .pri-high {
|
||||
color: #ff6666;
|
||||
}
|
||||
.maniphest-task-summary .pri-normal {
|
||||
color: #ffaa66;
|
||||
}
|
||||
.maniphest-task-summary .pri-low {
|
||||
color: #ffcc66;
|
||||
}
|
||||
.maniphest-task-summary .pri-wish {
|
||||
color: #0099ff;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.maniphest-basic-search-view {
|
||||
background: #888888;
|
||||
|
|
Loading…
Reference in a new issue