mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 11:12:42 +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' =>
|
'maniphest-task-summary-css' =>
|
||||||
array(
|
array(
|
||||||
'uri' => '/res/19a3c543/rsrc/css/application/maniphest/task-summary.css',
|
'uri' => '/res/18c190ab/rsrc/css/application/maniphest/task-summary.css',
|
||||||
'type' => 'css',
|
'type' => 'css',
|
||||||
'requires' =>
|
'requires' =>
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -37,6 +37,17 @@ class ManiphestTaskSummaryView extends AphrontView {
|
||||||
|
|
||||||
require_celerity_resource('maniphest-task-summary-css');
|
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
|
return
|
||||||
'<table class="maniphest-task-summary">'.
|
'<table class="maniphest-task-summary">'.
|
||||||
'<td class="maniphest-task-number">'.
|
'<td class="maniphest-task-number">'.
|
||||||
|
@ -61,6 +72,7 @@ class ManiphestTaskSummaryView extends AphrontView {
|
||||||
phutil_escape_html($task->getTitle())).
|
phutil_escape_html($task->getTitle())).
|
||||||
'</td>'.
|
'</td>'.
|
||||||
'<td class="maniphest-task-priority">'.
|
'<td class="maniphest-task-priority">'.
|
||||||
|
'<span class="pri-bullet '.$pri_class.'">'."\xE2\x96\xB6".'</span> '.
|
||||||
ManiphestTaskPriority::getTaskPriorityName($task->getPriority()).
|
ManiphestTaskPriority::getTaskPriorityName($task->getPriority()).
|
||||||
'</td>'.
|
'</td>'.
|
||||||
'<td class="maniphest-task-updated">'.
|
'<td class="maniphest-task-updated">'.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
.maniphest-task-summary td {
|
.maniphest-task-summary td {
|
||||||
padding: 4px 0.5%;
|
padding: 4px 0.5%;
|
||||||
background: #dfdfdf;
|
background: #f0f0f0;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.maniphest-task-summary td.maniphest-task-priority {
|
.maniphest-task-summary td.maniphest-task-priority {
|
||||||
text-align: center;
|
|
||||||
width: 11%;
|
width: 11%;
|
||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
}
|
}
|
||||||
|
@ -50,6 +49,30 @@
|
||||||
min-width: 120px;
|
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 {
|
.maniphest-basic-search-view {
|
||||||
background: #888888;
|
background: #888888;
|
||||||
|
|
Loading…
Reference in a new issue