* Split off the detail and list templates into a normal one that generates a full...
[matthijs/projects/xerxes.git] / templates / influences / influence_list_block.html
diff --git a/templates/influences/influence_list_block.html b/templates/influences/influence_list_block.html
new file mode 100644 (file)
index 0000000..e59216f
--- /dev/null
@@ -0,0 +1,14 @@
+{% load i18n %}
+
+<h1>{% trans "Your influences" %}</h1>
+{% if object_list %}
+       <ul>
+       {% for influence in object_list %}
+        <li><a href="{% url influences_influence_detail influence.id %}">{{influence.contact }} -- {{ influence.summary }}</a></li>
+       {% endfor %}
+       </ul>
+{% else %}
+       <p>{% trans "No influences yet." %}</p>
+{% endif %}
+
+<p><a href="{% url influences_add_influence %}">{% trans "Submit influence" %}</a></p>