Show the influence list sorted by character.
[matthijs/projects/xerxes.git] / templates / influences / influence_list_block.html
1 {% load i18n %}
2
3 {# Note that this template looks quite like character_detail_block, it is #}
4 {# still different enough to not try and factor out the common parts #}
5 {# currently...  #}
6
7 <h1>{% trans "Your influences" %}</h1>
8 {% if characters %}
9         {% for character in characters %}
10                 <h2>{{ character.name }}</h2>
11         {% if character.initiated_influences.all or character.influences_involved_in.all %}
12             {% if character.initiated_influences.all %}
13                 <p>{% blocktrans with character.name as name %}Influences initiated by {{ name }}:{% endblocktrans %}</p>
14                 <ul>
15                 {% for influence in character.initiated_influences.all %}
16                     <li><a href="{% url influences_influence_detail influence.id %}">{{influence.contact }} -- {{ influence.summary }}</a></li>
17                 {% endfor %}
18                 </ul>
19             {% endif %}
20             {% if character.influences_involved_in.all %}
21                 <p>{% blocktrans with character.name as name %}Influences {{ name }} is involved in:{% endblocktrans %}</p>
22                 <ul>
23                 {% for influence in character.influences_involved_in.all %}
24                     <li><a href="{% url influences_influence_detail influence.id %}">{{influence.contact }} -- {{ influence.summary }}</a></li>
25                 {% endfor %}
26                 </ul>
27             {% endif %}
28         {% else %}
29             <p>{% trans "No influences yet." %}</p>
30         {% endif %}
31     {% endfor %}
32 {% else %}
33         <p>{% trans "No characters. Add a character first, so you can submit your influences." %}</p>
34 {% endif %}
35
36 <p><a href="{% url influences_add_influence %}">{% trans "Submit influence" %}</a></p>