Created
February 16, 2009 12:39
-
-
Save andreyvit/65148 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table> | |
<tr> | |
<th valign="top"></th> | |
<th valign="top"></th> | |
{% for key in data_keys %}<th valign="top">{{ key|strip_prefix:5 }}</th>{% endfor %} | |
</tr> | |
{% for occurrence in occurrences %} | |
<tr> | |
<td valign="top"><big>{{occurrence.count}} occurances</big></td> | |
<td valign="top"><span class="date">{% ifequal occurrence.first_occurrence_at|naturalday:"Nj,Y" occurrence.last_occurrence_at|naturalday:"Nj,Y" %}{{ occurrence.first_occurrence_at|naturalday:"N j, Y" }}{% else %}{{ occurrence.first_occurrence_at|naturalday:"N j, Y" }} – {{ occurrence.last_occurrence_at|naturalday:"N j, Y"}}{% endifequal %}</span></td> | |
{% for key in data_keys %}<td valign="top">{{ occurrence|kgetattr:key }}</td>{% endfor %} | |
</tr> | |
{% endfor %} | |
</table> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment