Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move task rendering into its own template
- Loading branch information
Showing
3 changed files
with
24 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<tr .task .#{taskState task} | ||
<th .title rowspan=2>#{taskTitle task} | ||
<td rowspan=2>^{setTaskDonenessButton taskId task} | ||
<td rowspan=2>^{oneButton "Delete" (DeleteTaskR taskId)} | ||
<td> | ||
$if null estimates | ||
<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)} | ||
<tr .task .#{taskState task} | ||
<td | ||
$forall pomo <- replicate (taskPomos task) undefined | ||
✓ |