1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Render full close status, not just "Closed", in Maniphest list view

Summary: Instead of just saying a task is "Closed", say "Resolved", "Wontfix",
etc.

Test Plan: Looked at task list view, saw "Resolved", "Wontfix", etc.

Reviewers: skrul, hunterbridges, jungejason, tuomaspelkonen, aran

Reviewed By: skrul

CC: aran, skrul, jungejason, epriestley

Differential Revision: 851
This commit is contained in:
epriestley 2011-08-22 17:47:06 -07:00
parent 6cae153569
commit 30024a8d86

View file

@ -61,6 +61,7 @@ class ManiphestTaskSummaryView extends ManiphestView {
); );
$pri_class = idx($classes, $task->getPriority()); $pri_class = idx($classes, $task->getPriority());
$status_map = ManiphestTaskStatus::getTaskStatusMap();
return return
'<table class="maniphest-task-summary">'. '<table class="maniphest-task-summary">'.
@ -69,9 +70,7 @@ class ManiphestTaskSummaryView extends ManiphestView {
'T'.$task->getID(). 'T'.$task->getID().
'</td>'. '</td>'.
'<td class="maniphest-task-status">'. '<td class="maniphest-task-status">'.
($task->getStatus() == ManiphestTaskStatus::STATUS_OPEN idx($status_map, $task->getStatus(), 'Unknown').
? 'Open'
: 'Closed').
'</td>'. '</td>'.
'<td class="maniphest-task-owner">'. '<td class="maniphest-task-owner">'.
($task->getOwnerPHID() ($task->getOwnerPHID()