tasks.html (1002B)
1 {{define "content"}} 2 <h1 class="page__title">Tasks</h1> 3 <nav class="filter"> 4 <a class="filter__item{{if eq .Status ""}} filter__item--active{{end}}" href="/tasks">open</a> 5 {{range .Statuses}}<a class="filter__item{{if eq $.Status .}} filter__item--active{{end}}" href="/tasks?s={{.}}">{{.}}</a>{{end}} 6 <a class="filter__item{{if eq .Status "all"}} filter__item--active{{end}}" href="/tasks?s=all">all</a> 7 </nav> 8 <table class="table"> 9 <thead><tr><th>Task</th><th>Status</th><th>Due</th><th>Title</th><th>Blocked by</th></tr></thead> 10 <tbody> 11 {{range .Tasks}} 12 <tr class="table__row table__row--{{.Eff}}"> 13 <td><a href="/m/{{.Ref.MS}}#t{{.Ref.N}}">{{.Ref}}</a></td> 14 <td>{{template "status" (dict "V" . "Back" $.Back "Statuses" $.Statuses)}}</td> 15 <td>{{.T.Due}}</td> 16 <td>{{.T.Title}}</td> 17 <td>{{range .Blockers}}<a href="/m/{{.MS}}#t{{.N}}">{{.}}</a> {{end}}</td> 18 </tr> 19 {{else}}<tr><td colspan="5" class="muted">No tasks.</td></tr> 20 {{end}} 21 </tbody> 22 </table> 23 {{end}}