home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In Calendar view, highlight today's date.
[plomtask]
/
templates
/
calendar.html
diff --git
a/templates/calendar.html
b/templates/calendar.html
index eae103d9929ccc061b6eff1d296ecf2767325e81..d7ec545bf3eb075b19cdce76d1fd7f9a7a9cf55d 100644
(file)
--- a/
templates/calendar.html
+++ b/
templates/calendar.html
@@
-1,4
+1,6
@@
-{% extends 'base.html' %}
+{% extends '_base.html' %}
+
+
{% block css %}
tr.week_row td {
{% block css %}
tr.week_row td {
@@
-14,11
+16,16
@@
tr.month_row td {
td.day_name {
padding-right: 0.5em;
}
td.day_name {
padding-right: 0.5em;
}
+td.today {
+ font-weight: bold;
+}
{% endblock %}
{% block content %}
{% endblock %}
{% block content %}
+<h3>calendar</h3>
+
<form action="calendar" method="GET">
from <input name="start" value="{{start}}" />
to <input name="end" value="{{end}}" />
<form action="calendar" method="GET">
from <input name="start" value="{{start}}" />
to <input name="end" value="{{end}}" />
@@
-41,10
+48,18
@@
to <input name="end" value="{{end}}" />
<tr>
<td class="day_name">{{day.weekday|truncate(2,True,'',0)}}</td>
<tr>
<td class="day_name">{{day.weekday|truncate(2,True,'',0)}}</td>
-<td><a href="day?date={{day.date}}">{{day.date}}</a></td>
+<td
{% if day.date == today %} class="today"{% endif %}
><a href="day?date={{day.date}}">{{day.date}}</a></td>
<td>{{day.comment|e}}</td>
</tr>
<td>{{day.comment|e}}</td>
</tr>
+{% for todo in day.calendarized_todos %}
+<tr>
+<td>[{% if todo.is_done %}X{% else %} {% endif %}]</td>
+<td><a href="todo?id={{todo.id_}}">{{todo.title_then|e}}</td>
+<td>{{todo.comment|e}}</td>
+</tr>
+{% endfor %}
+
{% endfor %}
</table>
{% endblock %}
{% endfor %}
</table>
{% endblock %}