Made sub-category marking simpler, use it in owned tasks display as well.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@931 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -37,6 +37,11 @@ $form.fixedHidden("task", "$task.taskId")
|
||||
#else
|
||||
#set ($rowcolor = "#EEEEEE")
|
||||
#end
|
||||
|
||||
#if ($ocats.checkCategory($task.complexity))
|
||||
<tr><td colspan="4" class="small">$task.complexity</td></tr>
|
||||
#end
|
||||
|
||||
<tr bgcolor="$rowcolor"><td>
|
||||
#if ($username == $task.owner)
|
||||
$form.imageSubmit("submit", "", "images/complete.png", "Mark as completed")
|
||||
@@ -72,14 +77,11 @@ $form.imageSubmit("submit", "", "images/complete.png", "Mark as completed")
|
||||
#end
|
||||
</td></tr>
|
||||
|
||||
#set ($complexity = "")
|
||||
|
||||
#foreach ($task in $xtask.tasks)
|
||||
<form action="index.wm">
|
||||
$form.fixedHidden("task", "$task.taskId")
|
||||
|
||||
#if ($task.complexity != $complexity)
|
||||
#set ($complexity = $task.complexity)
|
||||
#if ($xcats.checkCategory($task.complexity))
|
||||
<tr><td colspan="4" class="small">$task.complexity</td></tr>
|
||||
#end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user