2021-02-27 10:26:37 +01:00
|
|
|
extends layout
|
|
|
|
|
|
|
|
block content
|
|
|
|
h1= title
|
|
|
|
p Welcome to #{title}
|
2021-03-02 09:23:33 +01:00
|
|
|
section.tasks
|
|
|
|
h2 #{json.tasks.project.task.length} Tâches
|
2021-03-02 09:53:16 +01:00
|
|
|
ul.stats
|
2021-03-02 11:57:31 +01:00
|
|
|
li #{json.stats.listOpen.length} ouvertes
|
|
|
|
li #{json.stats.listOpenWeekly.length} ouvertes cette semaine
|
2021-03-02 12:09:05 +01:00
|
|
|
li #{json.stats.listOpenMonthly.length} ouvertes ce mois-ci
|
2021-03-02 11:57:31 +01:00
|
|
|
li #{json.stats.listClosed.length} fermées
|
|
|
|
li #{json.stats.listClosedWeekly.length} fermées cette semaine
|
2021-03-02 12:09:05 +01:00
|
|
|
li #{json.stats.listClosedMonthly.length} fermées ce mois-ci
|
2021-03-01 18:14:47 +01:00
|
|
|
section.tags
|
2021-03-02 09:23:33 +01:00
|
|
|
h2 #{json.tags.tagstore.tag.length} Tags
|
2021-03-02 11:10:53 +01:00
|
|
|
p maximum de #{json.stats.maxTasksCountPerTag} tâches pour un tag.
|
2021-03-01 21:27:00 +01:00
|
|
|
ul.tags
|
|
|
|
li.head
|
|
|
|
span.name nom
|
|
|
|
span.color couleur
|
|
|
|
span.parent parent
|
2021-03-02 09:23:33 +01:00
|
|
|
span.tasks tâches
|
2021-03-02 09:53:16 +01:00
|
|
|
span.tasks finies
|
2021-03-02 10:12:15 +01:00
|
|
|
span.tasks actives
|
|
|
|
span.tasks actives %
|
2021-03-01 21:27:00 +01:00
|
|
|
each t in json.tags.tagstore.tag
|
|
|
|
li
|
2021-03-02 11:10:53 +01:00
|
|
|
span.name(class= {emphasis: t.tasks == json.stats.maxTasksCountPerTag})= t['$'].name
|
2021-03-01 21:27:00 +01:00
|
|
|
span.color= t['$'].color
|
|
|
|
span.parent= t['$'].parent
|
2021-03-02 09:53:16 +01:00
|
|
|
if t.tasksListIsDoneByTitle
|
2021-03-02 11:10:53 +01:00
|
|
|
span.text-right(class=computeBgColorOnProportionOfOpenTasks(getPercent(t.tasks, json.stats.maxTasksCountPerTag)))= t.tasks
|
2021-03-02 10:57:26 +01:00
|
|
|
if t.tasksListIsDoneByTitle
|
|
|
|
span.text-right.tasks= t.tasksListIsDoneByTitle.length
|
2021-03-02 10:12:15 +01:00
|
|
|
if t.tasksListIsActiveByTitle
|
2021-03-02 10:57:26 +01:00
|
|
|
span.text-right.tasks #{t.tasksListIsActiveByTitle.length}
|
|
|
|
span.text-right.tasks(class=computeBgColorOnProportionOfOpenTasks(getPercent(t.tasksListIsActiveByTitle.length, t.tasks))) #{getPercent(t.tasksListIsActiveByTitle.length, t.tasks)} %
|
|
|
|
span.text-right.tasks #{getPercentOfOpenTasks(t.tasksListIsActiveByTitle.length)} %
|
|
|
|
button.text-right.toggle voir
|
2021-03-02 10:12:15 +01:00
|
|
|
ul
|
|
|
|
each activetask in t.tasksListIsActiveByTitle
|
|
|
|
li.task_item= activetask
|