blob: 6423296a2b3cd121d6fc4adf6e62d8cde168947a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{% extends "base.html" %}
{% load prefix %}
{% load datehumanize %}
{% load roomurl %}
{% load prefix %}
{% load tagging_tags %}
{% block widgets %}
$("#rooms").accordion({
header: 'h3',
active: false,
event: "click",
collapsible: true,
navigation: true,
animated: true,
autoHeight: false
});
{% endblock %}
{% block content %}
<h1>Your meeting rooms</h1>
{% if rooms %}
<div id="rooms">
{% for r in rooms %}
<div id="{{r.id}}">
<h3 class="listheader">{{r.name}}</h3>
<div>
<ul class="ilist">
<li style="vertical-align: top;">
<ul class="nlist">
{% if r.self_cleaning %}<li>Room will be reset when empty.</li>{% endif %}
<li>Created by {{r.creator}} {{r.timecreated|datehumanize}}.</li>
{% if r.lastvisited %}<li>Last visited {{r.lastvisited|datehumanize}} when there was {{r.nusers}} user{{r.nusers|pluralize}} in the room.</li>{%endif%}
<li>Meeting room URL: <a href="{{r|roomurl}}">{{r|roomurl}}<span style="vertical-align: bottom;" class="ui-icon ui-icon-extlink"></span></a></li>
</ul>
</li>
{% tags_for_object r as tags %}
<li style="vertical-align: top;">
<ul class="nlist">
<li>Room tags:
{% for tag in tags %}
<a href="{% prefix %}/+{{tag}}">{{tag}}</a>
{% endfor %} ... <a href="{% prefix %}/room/{{r.id}}/tag"><em>manage room tags</em></a></li>
</ul>
</li>
</ul>
<br/>
{% if r.description %}
<p class="ui-widget">{{r.description|safe}}</p>
{% endif %}
<ul class="ilist">
<!-- li><div class="button"><a href="{% prefix %}/room/{{r.id}}/modify">Modify Room</a></li -->
<li><div class="button"><a href="{% prefix %}/room/{{r.id}}/delete">Delete Room</a></li>
<li><div class="button"><a href="{% prefix %}/room/{{r.id}}/tag">Room Tags</a></li>
</ul>
</div>
</div>
{% endfor %}
</div>
{% else %}
<p>You don't have any rooms listed right now...</p>
{% endif %}
<br/>
<ul class="ilist">
<li><div class="button"><a href="{% prefix %}/room/create">Create a new room</a></div></li>
</ul>
{% endblock %}
|