summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-08-03 15:23:28 +0200
committerLeif Johansson <leifj@sunet.se>2011-08-03 15:23:28 +0200
commit5d9177ccbb663869a3ccca47ed713dd2c1f4e7ae (patch)
treeed3b1d30ca7565d7de058f86aa745f890194aad2
parenta258be6002b5f720a2e732ab94df5e0c36c2110f (diff)
list user and host count in mail room display
-rw-r--r--src/templates/apps/room/list.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/templates/apps/room/list.html b/src/templates/apps/room/list.html
index cc10f9d..aeb7578 100644
--- a/src/templates/apps/room/list.html
+++ b/src/templates/apps/room/list.html
@@ -35,6 +35,7 @@
<ul class="nlist square" style="padding-left: 2px;">
<li>&raquo;&nbsp;Tags: {% for tag in tags %}<a style="margin-right: 5px;" class="ui-widget" href="{% prefix %}/room/+{{tag}}">{{tag}}</a>{% endfor %} {%if edit %}<a style="font-size: 75%;" href="{% prefix %}/room/{{r.id}}/tag"><em>... manage room tags</em></a>{%endif%}</li>
<li>&raquo;&nbsp;Created by {{r.creator}} {{r.timecreated|datehumanize}}.</li>
+ <li>&raquo;&nbsp;{%if r.nusers%}There are {{r.nusers}} users present, {{r.nhosts}} of whom are hosts.{%else%}The room is currently unoccupied.{%endif%}</li>
{% if r.self_cleaning %}<li>&raquo;&nbsp;Room will be reset when empty.</li>{%else%}<li>&raquo;&nbsp;Room state is preserved between sessions.</li>{% endif %}
{% if r.lastvisited %}<li>&raquo;&nbsp;Last visited {{r.lastvisited|datehumanize}}</li>{%endif%}
<li>&raquo;&nbsp;Hosted on {{r.acc.name}}</li>