From 8c7581b148c88462a01acd90aedc868c0627d985 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 11 Feb 2011 11:21:18 -0800 Subject: [PATCH] Make task summary views slightly prettier. Summary: Test Plan: Reviewers: CC: --- src/__celerity_resource_map__.php | 2 +- .../tasksummary/ManiphestTaskSummaryView.php | 12 +++++++++ .../application/maniphest/task-summary.css | 27 +++++++++++++++++-- 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php index cb6bc2edea..84e7614725 100644 --- a/src/__celerity_resource_map__.php +++ b/src/__celerity_resource_map__.php @@ -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( diff --git a/src/applications/maniphest/view/tasksummary/ManiphestTaskSummaryView.php b/src/applications/maniphest/view/tasksummary/ManiphestTaskSummaryView.php index 54670b712d..200bd40fff 100644 --- a/src/applications/maniphest/view/tasksummary/ManiphestTaskSummaryView.php +++ b/src/applications/maniphest/view/tasksummary/ManiphestTaskSummaryView.php @@ -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 ''. @@ -61,6 +72,7 @@ class ManiphestTaskSummaryView extends AphrontView { phutil_escape_html($task->getTitle())). ''. ''. '
'. + ''."\xE2\x96\xB6".' '. ManiphestTaskPriority::getTaskPriorityName($task->getPriority()). ''. diff --git a/webroot/rsrc/css/application/maniphest/task-summary.css b/webroot/rsrc/css/application/maniphest/task-summary.css index e2c121149c..7f22fff478 100644 --- a/webroot/rsrc/css/application/maniphest/task-summary.css +++ b/webroot/rsrc/css/application/maniphest/task-summary.css @@ -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;