rmtask.mdwn 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. This is a template for [[/roadmap]] tasks. Parameters:
  2. - `done`: Whether the task is done (default: no)
  3. - `prog` Whether the task is in progress (default: no)
  4. - `text`: The title text of the task, a short description, must be supplied
  5. - `more`: Additional text such as more details, reports of attempt to do the
  6. task, useful material, how it was closed, etc. (default: none)
  7. [[!templatebody <<ENDBODY
  8. <TMPL_IF done>
  9. <div class="donetext">
  10. [[!color foreground=#8ae234 text="**&#91;x&#93;**"]]
  11. <TMPL_VAR text>
  12. </div>
  13. <TMPL_IF more>
  14. <div class="donemore"><TMPL_VAR more></div>
  15. </TMPL_IF>
  16. <TMPL_ELSE>
  17. <TMPL_IF prog>
  18. <div class="progtext">
  19. [[!color foreground=#fce94f text="**&#91;~&#93;**"]]
  20. <TMPL_VAR text>
  21. </div>
  22. <TMPL_IF more>
  23. <div class="progmore"><TMPL_VAR more></div>
  24. </TMPL_IF>
  25. <TMPL_ELSE>
  26. <div class="todotext">
  27. [[!color foreground=#ef2929 text="**&#91;&#95;&#93;**"]]
  28. <TMPL_VAR text>
  29. </div>
  30. <TMPL_IF more>
  31. <div class="todomore"><TMPL_VAR more></div>
  32. </TMPL_IF>
  33. </TMPL_IF>
  34. </TMPL_IF>
  35. ENDBODY]]