Only show a list of involved when there are multiple.
[matthijs/projects/xerxes.git] / templates / influences / influence_detail.html
index b06ed889d46c82d81c9a52547628d9091d7c437e..ac3235c01d82c3d44ddf2e748d773b1974350ff8 100644 (file)
@@ -1,6 +1,23 @@
 {% extends "base/base.html" %}
 {% load i18n %}
+{% load list %}
 
 {% block content %}
-{% include "influences/influence_detail_block.html" %}
+<h1>{{ object.summary }}</h1>
+<table>
+<tr><td>{% trans "Iniator" %}:</td><td><a href="{% url influences_character_detail object.initiator.id %}">{{ object.initiator }}</a></td></tr>
+{% if object.involved %}
+<tr><td>{% trans "Involved" %}:</td><td>
+{{ object.involved|list_or_value }}</td></tr>
+{% endif %}
+{% if object.longterm %}
+<tr><td>{% trans "Long term" %}:</td><td>{{ object.longterm|yesno|capfirst }}</td></tr>
+{% endif %}
+</table>
+<p>{{ object.description }}</p>
+               
+<h2>{% trans "Comments" %}</h2>
+{% block comments %}
+{% include "influences/influence_comments_block.html" %}
+{% endblock %}
 {% endblock %}