* Fix the approved/not approved display in the character_detail display, it always...
[matthijs/projects/xerxes.git] / templates / influences / character_detail.html
index d418529f812fecc6e30a67ee9b8ba687666656e1..09afc68bc32aae774684635619f107e26ad36ddf 100644 (file)
@@ -3,14 +3,19 @@
 
 {% block content %}
 
-<h2>{{ object.name }}</h2>
-<h3>{% blocktrans with object.name as name %}Influences for {{ name }}{% endblocktrans %}</h3>
+<h1>{{ object.name }}</h1>
+{% ifequal object.status "N" %}
+<em>{% trans "This character was not yet approved by the SLs" %}</em>
+{% else %}
+<em>{% trans "This character is approved by the SLs" %}</em>
+{% endifequal %}
+<h2>{% blocktrans with object.name as name %}Influences for {{ name }}{% endblocktrans %}</h2>
 <ul>
-{% for influence in object.influence_set.objects.all %}
-       <li>{{ influence }}</li>
+{% for influence in object.influence_set.all %}
+       <li><a href="{% url influences_influence_detail influence.pk %}">{{ influence }}</a></li>
 {% endfor %}
 </ul>
 
-<a href="{% url influences_add_influence_to_character object.id %}">{% trans "Submit influence" %}</a>
+<a href="{% url influences_add_influence_for_character object.id %}">{% trans "Submit influence" %}</a>
 
 {% endblock %}