[svn] Add: new generic object list template object_list.html, and convenience filter named "link" for making links from objects, and make expeditions list page using those two. Also, fixed survey parsing in databaseReset.py

This commit is contained in:
substantialnoninfringinguser
2009-05-15 03:29:19 +01:00
parent 118d132797
commit d8a215a575
6 changed files with 40 additions and 19 deletions

View File

@@ -0,0 +1,15 @@
{% extends "base.html" %}
{% load link %}
{% block title %}Troggle: all {{object_list.1.meta.object_name}} objects{%endblock%}
{% block contentheader %}
<h1>All {{object_list.0.object_name}} objects</h1>
{% endblock contentheader %}
{% block content %}
<ul>
{% for object in object_list %}
| {{ object|link }}
{% endfor %} |
</ul>
{% endblock content %}