-{% 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>
+{% if characters %}
+ {% for character in characters %}
+ <h2>{{ character.name }}</h2>
+ {% if character.initiated_influences.all or character.influences_involved_in.all %}
+ {% if character.initiated_influences.all %}
+ <p>{% blocktrans with character.name as name %}Influences initiated by {{ name }}:{% endblocktrans %}</p>
+ <ul>
+ {% for influence in character.initiated_influences.all %}
+ <li><a href="{% url influences_influence_detail influence.id %}">{{influence.contact }} -- {{ influence.summary }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% if character.influences_involved_in.all %}
+ <p>{% blocktrans with character.name as name %}Influences {{ name }} is involved in:{% endblocktrans %}</p>
+ <ul>
+ {% for influence in character.influences_involved_in.all %}
+ <li><a href="{% url influences_influence_detail influence.id %}">{{influence.contact }} -- {{ influence.summary }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% else %}
+ <p>{% trans "No influences yet." %}</p>
+ {% endif %}
+ {% endfor %}