-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtemplate.jinja
148 lines (134 loc) · 2.91 KB
/
template.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<style>
html, body {
height: 100%;
margin: 0px;
padding: 0px;
font-size: 100%;
font-family: "Lucida Console", monospace;
}
table, th, td {
border: 0px;
border-collapse: collapse;
}
h3 {
text-align: center;
}
#container {
width: 100%;
height: 100%;
font-size: 1.05em;
}
.todo {
float: left;
width: 33%;
height: 100%;
background-color: #ff9176;
}
.todo tr:nth-child(even) {
background-color: #ff886a;
}
.started {
float: left;
width: 33%;
height: 100%;
background-color: #ffdb4d;
}
.started tr:nth-child(even) {
background-color: #ffd633;
}
.completed {
float: left;
width: 33%;
height: 100%;
background-color: #4dff88;
}
.completed tr:nth-child(even) {
background-color: #33ff77;
}
.project {
font-size: 0.5em;
font-style: italic;
vertical-align: super;
}
.due_date {
font-size: 0.7em;
font-style: italic;
}
.warning {
font-size: 2em;
font-style: normal;
font-weight: bold;
color: #ff00ff;
}
</style>
<title>Taskwarrior Personal Kanban Board</title>
</head>
<body>
<div id='container'>
<div class="todo">
<h3>Not started</h3>
<table width='100%'>
{% for task in todo_tasks %}
<tr><td>{{ loop.index }}.</td>
<td>{{ task.description }}
{% if 'project' in task %}
<span class='project'>[{{ task.project }}]</span>
{% endif %}
{% if 'due' in task %}
{% if task.due == 0 %}
<span class='warning'>⚠ </span><span class='due_date'>(Due today)</span>
{% elif task.due < 0 %}
<span class='due_date'>(Overdue)</span>
{% else %}
<span class='due_date'>(Due in {{ task.due }} days)</span>
{% endif %}
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
<div class="started">
<h3>In progress</h3>
<table width='100%'>
{% for task in started_tasks %}
<tr><td>{{ loop.index }}.</td>
<td>{{ task.description }}
{% if 'project' in task %}
<span class='project'>[{{ task.project }}]</span>
{% endif %}
{% if 'due' in task %}
{% if task.due == 0 %}
<span class='warning'>⚠ </span><span class='due_date'>(Due today)</span>
{% elif task.due < 0 %}
<span class='due_date'>(Overdue)</span>
{% else %}
<span class='due_date'>(Due in {{ task.due }} days)</span>
{% endif %}
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
<div class="completed">
<h3>Done</h3>
<table width='100%'>
{% for task in completed_tasks %}
<tr><td>{{ loop.index }}.</td>
<td><s>{{ task.description }}</s>
{% if 'project' in task %}
<span class='project'>[{{ task.project }}]</span>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</body>
</html>