Skip to content

Instantly share code, notes, and snippets.

@andreyvit
Created February 16, 2009 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreyvit/65148 to your computer and use it in GitHub Desktop.
Save andreyvit/65148 to your computer and use it in GitHub Desktop.
<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