diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:40:56 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:40:56 +0100 |
commit | eb431eb5c949bb30c51cd53dbbd802816e7f15ec (patch) | |
tree | 0a3e4e299d2d6a699153bfad4506fb98ab88721a /templates | |
parent | aeef470c6d3d7f2619e61249d9c1f6bb5146ec41 (diff) | |
download | troggle-eb431eb5c949bb30c51cd53dbbd802816e7f15ec.tar.gz troggle-eb431eb5c949bb30c51cd53dbbd802816e7f15ec.tar.bz2 troggle-eb431eb5c949bb30c51cd53dbbd802816e7f15ec.zip |
[svn] Fixed up calendar with estimated dates from logbook.
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8202 by aaron @ 1/19/2009 8:28 AM
Diffstat (limited to 'templates')
-rw-r--r-- | templates/calendar.html | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/templates/calendar.html b/templates/calendar.html index a39556c..70d3ecf 100644 --- a/templates/calendar.html +++ b/templates/calendar.html @@ -9,12 +9,13 @@ {% endif %}
{% endblock %}
-{% block javascript %}
+{% block head %}
<style type="text/css">
<!--
-td.yes { background: #7f96e8; width: 80pt; font-size: 10pt }
-td.no { background: #ff6666; width: 80pt; font-size: 10pt }
-td.name { background: #7f96e8; width: 80pt; text-align:right; font-size: 10pt }
+.no { background: #7f96e8; width: 80pt; font-size: 10pt }
+.yes { background: #ff6666; width: 80pt; font-size: 10pt }
+.name { background: #999; width: 80pt; text-align:right; font-size: 10pt }
+.date { background: #999; width: 80pt; text-align:right; font-size: 10pt }
-->
</style>
@@ -26,20 +27,20 @@ td.name { background: #7f96e8; width: 80pt; text-align:right; <tr><td />
{% for date in expedition.ListDays %}
{% ifchanged date.month %}
- <td class="h">{{ date|date:"F" }}</td>
+ <td class="date">{{ date|date:"F" }}</td>
{% else %}
- <td class="h"></td>
+ <td class="date"></td>
{% endifchanged %}
{% endfor %}
</tr>
<tr><td />
{% for date in expedition.ListDays %}
- <td class="h">{{ date|date:"D" }}</td>
+ <td class="date">{{ date|date:"D" }}</td>
{% endfor %}
</tr>
<tr><td />
{% for date in expedition.ListDays %}
- <td class="h">{{ date|date:"d" }}</td>
+ <td class="date">{{ date|date:"d" }}</td>
{% endfor %}
</tr>
@@ -51,7 +52,7 @@ td.name { background: #7f96e8; width: 80pt; text-align:right; {% for dateTF in personexpedition.ListDaysTF %}
<td {{ dateTF|yesno:"class='yes',class='no'"|safe }}></td>
{% empty %}
- <td colspan="{{ expedition.ListDays|length }}">No data yet.</td>
+ <td colspan="{{ expedition.ListDays|length }}"><center>No data.</center></td>
{% endfor %}
|