diff options
author | Leif Johansson <leifj@sunet.se> | 2011-05-13 23:32:05 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-05-13 23:32:05 +0200 |
commit | fa14e453d51e3106734323a21d6ee68f30dd99e3 (patch) | |
tree | 00cb5afb4a6d0ab990ca86a277a5d35f4afe594e /src/templates/apps/room | |
parent | 22bc00a3c040bc06f9149eb99573dc8a1114aabd (diff) |
add recordings and some minor cleanup
Diffstat (limited to 'src/templates/apps/room')
-rw-r--r-- | src/templates/apps/room/recordings.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/templates/apps/room/recordings.html b/src/templates/apps/room/recordings.html new file mode 100644 index 0000000..f00cf76 --- /dev/null +++ b/src/templates/apps/room/recordings.html @@ -0,0 +1,53 @@ +{% extends "base.html" %} +{% load prefix %} +{% load datehumanize %} +{% load roomurl %} +{% load tagging_tags %} +{% block widgets %} + $("#recordings").accordion({ + header: 'h3', + active: false, + event: "click", + collapsible: true, + navigation: true, + animated: true, + autoHeight: false + }); +{% endblock %} +{% block meta %} +{% if tags %} +<link rel="alternate" type="application/rss+xml" title="{{title}} recordings (RSS 2.0)" href="{% prefix %}/room/{{room.id}}/recordings.rss" /> +<link rel="alternate" type="application/atom+xml" title="{{title}} recordings (ATOM 1.0)" href="{% prefix %}/room/{{room.id}}/recordings.atom" /> +{% endif %} +{% endblock %} +{% block content %} + <h1>Recordings in '{{room.name}}'</h1> + {% if recordings %} + <div id="recordings"> + {% for r in recordings %} + <div id="{{r.sco_id}}"> + <h3 class="listheader">{{r.name}}</h3> + <div> + <p><a target="_connect" href="{{r.url}}">{{r.url}}<span style="vertical-align: bottom;" class="ui-icon ui-icon-extlink"></span></a></p> + <p class="infopanel ui-widget ui-corner-all ui-state-highlight">{% if r.description %}{{r.description|safe}}{% else %}<em>No description available...</em>{% endif %}</p> + <ul class="nlist square" style="padding-left: 2px;"> + <li>» Created {{r.date_created|datehumanize}}.</li> + <li>» Modified {{r.date_modified|datehumanize}}.</li> + <li>» Hosted on {{room.acc.name}}</li> + </ul> + <br/> + <ul class="ilist"> + <li class="button"><a target="_connect" href="{{r.url}}">Play Recording</a></li> + </ul> + </div> + </div> + {% endfor %} + </div> + {% else %} + <p>No recordings right now...</p> + {% endif %} + <br/> + <ul class="ilist"> + <li class="button"><a href="{%prefix%}/room#{{room.id}}">Back to '{{room.name}}'</a></li> + </ul> +{% endblock %}
\ No newline at end of file |