Improve character_detail_block template.
[matthijs/projects/xerxes.git] / templates / influences / character_detail_block.html
1 {% load i18n %}
2 <h1>{{ object.name }}</h1>
3 {% ifequal object.status "N" %}
4 <em>{% trans "This character was not yet approved by the SLs" %}</em>
5 {% else %}
6 <em>{% trans "This character is approved by the SLs" %}</em>
7 {% endifequal %}
8
9 {% if object.initiated_influences.all or object.influences_involved_in.all %}
10     {% if object.initiated_influences.all %}
11         <h2>{% blocktrans with object.name as name %}Influences initiated by {{ name }}{% endblocktrans %}</h2>
12         <ul>
13         {% for influence in object.initiated_influences.all %}
14             <li><a href="{% url influences_influence_detail influence.pk %}">{{ influence }}</a></li>
15         {% endfor %}
16         </ul>
17     {% endif %}
18     {% if object.influences_involved_in.all %}
19         <h2>{% blocktrans with object.name as name %}Influences {{ name }} is involved in{% endblocktrans %}</h2>
20         <ul>
21         {% for influence in object.influences_involved_in.all %}
22             <li><a href="{% url influences_influence_detail influence.pk %}">{{ influence }}</a></li>
23         {% endfor %}
24         </ul>
25     {% endif %}
26 {% else %}
27     <p>{% trans "No influences yet." %}</p>
28 {% endif %}
29
30 <a href="{% url influences_add_influence_for_character object.id %}">{% trans "Submit influence" %}</a>