* Split off the detail and list templates into a normal one that generates a full...
[matthijs/projects/xerxes.git] / templates / influences / index.html
index 109901e9a7aff73811c8a2740be09cb9094d9c10..02596e1550cdc9801760bcaedb4354159b051cc3 100644 (file)
@@ -1,31 +1,15 @@
 {% extends "base/base.html" %}
-{% load i18n %}
 
 {% block content %}
 
-<h2>{% trans "Your characters"%}</h2>
-{% if characters %}
-       <ul>
-       {% for character in characters %}
-               <li><a href="{% url influences_character_detail character.id %}">{{ character.name }}</a></li>
-       {% endfor %}
-       </ul>
-{% else %}
-       <p>{% trans "No characters. Add a character first, so you can submit your influences." %}</p>
-{% endif %}
+{% with characters as object_list %}
+{% include "influences/character_list_block.html" %}
+{% endwith %}
 
-<p><a href="{% url influences_add_character %}">{% trans "Add character" %}</a></p>
-
-<h2>{% trans "Your influences" %}</h2>
-{% if influences %}
-       <ul>
-       {% for influence in influences %}
-        <li>{{influence.contact }} -- {{ influence.summary }} </li>
-       {% endfor %}
-       </ul>
-{% else %}
-       <p>{% trans "No influences yet." %}</p>
+{% if characters %}
+{% with influences as object_list %}
+{% include "influences/influence_list_block.html" %}
+{% endwith %}
 {% endif %}
 
-<p><a href="{% url influences_add_influence %}">{% trans "Submit influence" %}</a></p>
 {% endblock %}