diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:35:11 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:35:11 +0100 |
commit | cda0a7a5e1126a8965549ae4e2e4af4ffb7d01d3 (patch) | |
tree | ac29bcd0040fd4e19e144104c68a41da3ad65d66 /templates/calendar.html | |
parent | b66189bc9e506109766b7377a46b0321bcca71e5 (diff) | |
download | troggle-cda0a7a5e1126a8965549ae4e2e4af4ffb7d01d3.tar.gz troggle-cda0a7a5e1126a8965549ae4e2e4af4ffb7d01d3.tar.bz2 troggle-cda0a7a5e1126a8965549ae4e2e4af4ffb7d01d3.zip |
[svn] Beginnings of expo calendar
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8174 by aaron @ 1/18/2009 1:15 AM
Diffstat (limited to 'templates/calendar.html')
-rw-r--r-- | templates/calendar.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/templates/calendar.html b/templates/calendar.html new file mode 100644 index 0000000..559ef79 --- /dev/null +++ b/templates/calendar.html @@ -0,0 +1,61 @@ +{% extends "base.html" %}
+
+{% block title %}
+ CUCC expedition calendar:
+ {% if expedition %}
+ {{ expedition.year }}
+ {% else %}
+ choose a year
+ {% endif %}
+{% endblock %}
+
+{% block javascript %}
+<style type="text/css">
+<!--
+td.f { background: #7f96e8; width: 80pt; font-size: 10pt }
+td.ff { background: #ff6666; width: 80pt; font-size: 10pt }
+td.fe { background: #7f96e8; width: 80pt; text-align:right; font-size: 10pt }
+td.ffe { background: #ff6666; width: 80pt; text-align:right; font-size: 10pt }
+td.e { background: #aaaaaa; width: 80pt; text-align:center; font-size: 10pt }
+td.n { width: 120pt }
+td.t { font-size: 10pt }
+td.week { width: 4pt }
+td.h { width: 80pt; font-size: 8pt; text-align: center }
+tr.r { height: 40pt }
+tr.brk { height: 12pt }
+tr.sbrk { height: 2pt }
+tr.dblsbrk { height: 4pt }
+td.sbrk { background: #dddddd }
+td.dblsbrk { background: #dddddd; font-size: 6pt }
+span.l { background: #7f96e8 }
+span.s { background: #ff6666 }
+table.t { background: #dddddd }
+body { margin-left: 5%; margin-right: 5% }
+-->
+</style>
+
+{% endblock %}
+
+{% block content %}
+ {% if expedition %}
+ <table>
+ <tr>
+ {% for date in expedition.ListDays %}
+ {% ifchanged date.month %}
+ <td class="h">{{ date|date:"F" }}</td>
+ {% else %}
+ <td class="h"></td>
+ {% endifchanged %}
+ {% endfor %}
+ <tr>
+ {% for date in expedition.ListDays %}
+ <td class="h">{{ date|date:"D" }}</td>
+ {% endfor %}
+ <tr>
+ <tr>
+ {% for date in expedition.ListDays %}
+ <td class="h">{{ date|date:"d" }}</td>
+ {% endfor %}
+ <tr>
+ {% endif %}
+{% endblock %}
\ No newline at end of file |