From 00eade633328bd134c15a3c624b7ca7a687ea1f3 Mon Sep 17 00:00:00 2001 From: mdb Date: Mon, 10 Mar 2003 22:54:25 +0000 Subject: [PATCH] Formatting tweaks. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1064 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- runtime/twodue/web/detail.wm | 5 ++- runtime/twodue/web/edit.wm | 50 ++++++++++----------- runtime/twodue/web/index.wm | 84 ++++++++++++++++++------------------ runtime/twodue/web/style.css | 5 +++ 4 files changed, 75 insertions(+), 69 deletions(-) diff --git a/runtime/twodue/web/detail.wm b/runtime/twodue/web/detail.wm index 78d4ecba..90d0c44d 100644 --- a/runtime/twodue/web/detail.wm +++ b/runtime/twodue/web/detail.wm @@ -30,10 +30,11 @@ $form.imageSubmit("action", "claim", "images/claim.png", "Claim this task") #if (!$string.blank($notes)) +  +Notes   -

-$notes +

$notes
#end diff --git a/runtime/twodue/web/edit.wm b/runtime/twodue/web/edit.wm index 3eb1fa65..2daa668e 100644 --- a/runtime/twodue/web/edit.wm +++ b/runtime/twodue/web/edit.wm @@ -4,9 +4,6 @@ #if ($task)

- - - - -
- #if ($task.completor) @@ -26,13 +23,13 @@ $form.submit("submit", "Reopen") $form.fixedHidden("action", "update") - + - @@ -44,6 +41,10 @@ $form.text("category", "size='10'", $task.category) $form.option("complexity", "Subsystem", "Subsystem", $task.complexity) $form.option("complexity", "Major refactor", "Major refactor", $task.complexity) + + + - - - + - +
Summary:
- -
Category:
+
Category:
$form.text("category", "size='10'", $task.category)
Creator:
+$form.text("creator", "size='10'", $task.creator)
Priority:
@@ -57,25 +58,24 @@ $form.text("category", "size='10'", $task.category)
Creator:
-$form.text("creator", "size='10'", $task.creator) -
 Owner:
+
Owner:
#if ($task.owner) $form.text("owner", "size='10'", $task.owner) #else $form.text("owner", "size='10'", "") #end
 
+
$form.submit("submit", "Update")
-
 
Other actions:
+

+ + + -
Other actions:
$form.fixedHidden("action", "delete") @@ -84,33 +84,36 @@ $form.submit("submit", "Delete")
-

- - + $form.fixedHidden("action", "addnote") + + $form.fixedHidden("action", "editnotes")
 
Add a note:
- +
$form.submit("submit", "Add")
 
Notes:
- +
@@ -119,9 +122,6 @@ $form.submit("submit", "Update")
-
- #end #import ("/footer.wm") diff --git a/runtime/twodue/web/index.wm b/runtime/twodue/web/index.wm index 48c7f00f..0adcb324 100644 --- a/runtime/twodue/web/index.wm +++ b/runtime/twodue/web/index.wm @@ -3,23 +3,9 @@

- - - - - +
Owned tasks: -#if ($query) -Tasks matching '$query': -#else -Outstanding tasks: -#if ($expand == "all") -[trim] -#else -[show all] -#end -#end -
+Owned tasks: #foreach ($otask in $otasks) @@ -33,30 +19,28 @@ $ocats.clear() $form.fixedHidden("action", "complete") $form.fixedHidden("task", "$task.taskId") -#if ($vidx%2 == 0) -#set ($rowcolor = "#FFFFFF") -#else -#set ($rowcolor = "#EEEEEE") -#end #if ($ocats.checkCategory($task.complexity)) - + +#set ($border = "") +#else +#set ($border = 'style="border-top: 1px solid"') #end - - - - + #end @@ -66,7 +50,23 @@ $form.imageSubmit("submit", "", "images/complete.png", "Mark as completed")

Check the box to mark a task as completed.
- + + + +
$task.complexity
$task.complexity
+
#if ($username == $task.owner) $form.imageSubmit("submit", "", "images/complete.png", "Mark as completed") #else   #end $task.summary +$task.summary #if (!$string.blank($task.notes))   [...] #end $task.getDisplayCategory() +$task.getDisplayCategory()
+  + +#if ($query) +Tasks matching '$query': +#else +Outstanding tasks: +#if ($expand == "all") +[trim] +#else +[show all] +#end +#end + #foreach ($xtask in $xtasks) @@ -88,24 +88,22 @@ $xcats.clear() $form.fixedHidden("task", "$task.taskId") #if ($xcats.checkCategory($task.complexity)) - + +#set ($border = "") +#else +#set ($border = 'style="border-top: 1px solid"') #end -#if ($vidx%2 == 0) -#set ($rowcolor = "#FFFFFF") -#else -#set ($rowcolor = "#EEEEEE") -#end - + - - - + @@ -127,12 +125,10 @@ Filter on single word:
- - - - + + + +
$task.complexity
$task.complexity
$form.imageSubmit("action", "claim", "images/claim.png", "Claim this task")$task.summary   +$task.summary   [$task.creator] #if (!$string.blank($task.notes))   [...] #end $task.getDisplayCategory() +$task.getDisplayCategory()
 
Recent completed tasks:Create new task:
 
+Recent completed tasks: #foreach ($task in $dtasks) #if ($vidx%2 == 0) @@ -154,8 +150,12 @@ Filter on single word:
#end
-
+  +Create new task:
$form.fixedHidden("action", "create") diff --git a/runtime/twodue/web/style.css b/runtime/twodue/web/style.css index b23c2b10..098beb28 100644 --- a/runtime/twodue/web/style.css +++ b/runtime/twodue/web/style.css @@ -21,3 +21,8 @@ pre, code { .small { font-size: small; } + +table { + border-collapse: collapse; + border-width: 0; +}