forked from expo/troggle
[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:
15
templates/object_list.html
Normal file
15
templates/object_list.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user