Only allow users to add NPC or Player characters.
[matthijs/projects/xerxes.git] / templates / influences / influence_detail.html
1 {% extends "base/base.html" %}
2 {% load i18n %}
3 {% load list %}
4 {% load misc %}
5
6 {% block content %}
7 <h1>{{ object.summary }}</h1>
8 <table>
9 <tr><td>{% trans "Iniator" %}:</td><td><a href="{% url influences_character_detail object.initiator.id %}">{{ object.initiator }}</a></td></tr>
10 {% if object.involved %}
11 <tr><td>{% trans "Involved" %}:</td><td>
12 {{ object.involved|list_or_value }}</td></tr>
13 {% endif %}
14 {% if object.longterm %}
15 <tr><td>{% trans "Long term" %}:</td><td>{{ object.longterm|yesno|capfirst }}</td></tr>
16 {% endif %}
17 </table>
18 <p>{{ object.description }}</p>
19 {# Show all related players, except for the current user #}
20 {% with object.related_players|remove_item:user as players %}
21     {% if players %}
22     {% trans "Note: This influence (and its comments) can also be viewed by:" %}
23     <ul>
24         {% for player, chars in players.items %}
25             <li>{{ player }} ({% trans "player of" %} {{ chars|natural_list }})</li>
26         {% endfor %}
27     </ul>
28     {% endif %}
29 {% endwith %}
30 {% if object.result %}
31 <h2>{% trans "Result" %}</h2>
32 <p>{{ object.result }}</p>
33 {% endif %}
34 <h2>{% trans "Comments" %}</h2>
35 {% block comments %}
36 {% include "influences/influence_comments_block.html" %}
37 {% endblock %}
38 {% endblock %}