List the users that can view an Influence.
[matthijs/projects/xerxes.git] / templates / influences / influence_detail.html
index ac3235c01d82c3d44ddf2e748d773b1974350ff8..5c50b67dce014a8f93495304535d1933d5f155b6 100644 (file)
@@ -1,6 +1,7 @@
 {% extends "base/base.html" %}
 {% load i18n %}
 {% load list %}
+{% load misc %}
 
 {% block content %}
 <h1>{{ object.summary }}</h1>
 {% endif %}
 </table>
 <p>{{ object.description }}</p>
-               
+{# Show all related players, except for the current user #}
+{% with object.related_players|remove_item:user as players %}
+    {% if players %}
+    {% trans "Note: This influence (and its comments) can also be viewed by:" %}
+    <ul>
+        {% for player, chars in players.items %}
+            <li>{{ player }} ({% trans "player of" %} {{ chars|natural_list }})</li>
+        {% endfor %}
+    </ul>
+    {% endif %}
+{% endwith %}
 <h2>{% trans "Comments" %}</h2>
 {% block comments %}
 {% include "influences/influence_comments_block.html" %}