diff options
author | goatchurch <devnull@localhost> | 2009-07-27 13:42:54 +0100 |
---|---|---|
committer | goatchurch <devnull@localhost> | 2009-07-27 13:42:54 +0100 |
commit | 68060d6118b47c54c34004b97ef13d5200cdd401 (patch) | |
tree | d557d0213a729237778dbf8192a2f3145795d890 /templates/calendar.html | |
parent | ddbdc73e7eef3f63e8cd32172f6559759b896388 (diff) | |
download | troggle-68060d6118b47c54c34004b97ef13d5200cdd401.tar.gz troggle-68060d6118b47c54c34004b97ef13d5200cdd401.tar.bz2 troggle-68060d6118b47c54c34004b97ef13d5200cdd401.zip |
[svn] some file reading things
Diffstat (limited to 'templates/calendar.html')
-rw-r--r-- | templates/calendar.html | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/templates/calendar.html b/templates/calendar.html index 0bc7dfd..4e22e78 100644 --- a/templates/calendar.html +++ b/templates/calendar.html @@ -37,7 +37,7 @@ {% if expedition %}
<table>
<tr><td />
- {% for date in expedition.ListDays %}
+ {% for date in listdays %}
{% ifchanged date.month %}
<td class="date">{{ date|date:"F" }}</td>
{% else %}
@@ -46,31 +46,26 @@ {% endfor %}
</tr>
<tr><td />
- {% for date in expedition.ListDays %}
+ {% for date in listdays %}
<td class="date">{{ date|date:"D" }}</td>
{% endfor %}
</tr>
<tr><td />
- {% for date in expedition.ListDays %}
+ {% for date in listdays %}
<td class="date">{{ date|date:"d" }}</td>
{% endfor %}
</tr>
- {% for personexpedition in expedition.personexpedition_set.all %}
+ {% for personexpedition, pelistdays in personexpeditiondays %}
<tr>
<td class="name">
<a href="{{ personexpedition.person.get_absolute_url }}">{{ personexpedition.person }}</a>
-
</td>
- {% if personexpedition.ListDaysTF %}
- {% for dateTF in personexpedition.ListDaysTF %}
- <td {{ dateTF|yesno:"class='yes',class='no'"|safe }}></td>
+ {% for peday in pelistdays %}
+ <td {{ peday|yesno:"class='yes',class='no'"|safe }}></td>
{% endfor %}
- {% else %}
- <td colspan="{{ expedition.ListDays|length }}"><center>No data.</center></td>
- {% endif %}
</tr>
{% endfor %}
</table>
{% endif %}
-{% endblock %}
\ No newline at end of file +{% endblock %}
|