Permalink
Browse files

Nicen display of done tasks

  • Loading branch information...
1 parent fd784d1 commit 486701e96931f3681d73236c18fa2b14cde6c482 @samstokes committed Sep 8, 2011
Showing with 11 additions and 8 deletions.
  1. +1 −1 cassius/tasks.cassius
  2. +10 −7 hamlet/tasks/task-tr.hamlet
View
2 cassius/tasks.cassius
@@ -1,4 +1,4 @@
.task .title
text-align: left
-.task.done .title
+.task.done .title, .task.done .estimate, .task.done .pomos
text-decoration: line-through
View
17 hamlet/tasks/task-tr.hamlet
@@ -2,18 +2,21 @@
<th .title rowspan=2>#{taskTitle task}
<td rowspan=2>^{setTaskDonenessButton taskId task}
<td rowspan=2>^{oneButton "Delete" (DeleteTaskR taskId)}
- <td>
+ <td .estimate
$if null estimates
- <form method=POST action=@{TaskAddEstimateR taskId}
- $forall numPomos <- estimateOptions
- <button name=pomos value=#{show numPomos}
- #{show numPomos}
+ $if not (taskDone task)
+ <form method=POST action=@{TaskAddEstimateR taskId}
+ $forall numPomos <- estimateOptions
+ <button name=pomos value=#{show numPomos}
+ #{show numPomos}
$else
$with firstEstimate <- estimatePomos $ snd $ head estimates
$forall estimate <- replicate firstEstimate undefined
- <td rowspan=2>^{oneButton "Pomo" (TaskAddPomoR taskId)}
+ <td rowspan=2
+ $if not (taskDone task)
+ ^{oneButton "Pomo" (TaskAddPomoR taskId)}
<tr .task .#{taskState task}
- <td
+ <td .pomos
$forall pomo <- replicate (taskPomos task) undefined

0 comments on commit 486701e

Please sign in to comment.