summaryrefslogtreecommitdiff
path: root/templates/apps/room/recordings.html
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-04 15:39:08 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-04 15:39:08 +0200
commit2bdad0ae7a3a6e4ec5116becd39910388b679ed2 (patch)
tree5afdfba0a93c1af50d53bdc245d57cc4053e109a /templates/apps/room/recordings.html
parent873e7823970352d591deee5f67f47c5436ee0e84 (diff)
restructure
Diffstat (limited to 'templates/apps/room/recordings.html')
-rw-r--r--templates/apps/room/recordings.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/apps/room/recordings.html b/templates/apps/room/recordings.html
new file mode 100644
index 0000000..8e95b09
--- /dev/null
+++ b/templates/apps/room/recordings.html
@@ -0,0 +1,46 @@
+{% extends "base.html" %}
+
+{% load datehumanize %}
+{% load roomurl %}
+{% load tagging_tags %}
+{% block widgets %}
+$(".collapse").collapse({'parent': '#recordings'});
+{% endblock %}
+{% block meta %}
+<link rel="alternate" type="application/rss+xml" title="{{title}} recordings (RSS 2.0)" href="/room/{{room.id}}/recordings.rss" />
+<link rel="alternate" type="application/atom+xml" title="{{title}} recordings (ATOM 1.0)" href="/room/{{room.id}}/recordings.atom" />
+{% endblock %}
+{% block content %}
+ <div class="page-header">
+ <h1>Recordings in '{{room.name}}'</h1>
+ </div>
+ {% if recordings %}
+ <div id="recordings" class="accordion">
+ {% for r in recordings %}
+ <div class="recording accordion-group">
+ <div class="accordion-heading"><a class="accordion-toggle" data-toggle="collapse" href="#{{r.sco_id}}">{{r.name}}</a></div>
+ <div id="{{r.sco_id}}" class="accordion-body collapse in">
+ <div class="accordion-inner">
+ <p><a target="_connect" href="{{r.url}}">{{r.url}}</a></p>
+ <div class="well">{% if r.description %}{{r.description|safe}}{% else %}<em>No description available...</em>{% endif %}</div>
+ <ul class="unstyled">
+ <li>&raquo;&nbsp;Created {{r.date_created|datehumanize}}.</li>
+ <li>&raquo;&nbsp;Modified {{r.date_modified|datehumanize}}.</li>
+ <li>&raquo;&nbsp;Hosted on {{room.acc.name}}</li>
+ </ul>
+ <a class="btn btn-info" target="_connect" href="{{r.url}}">Play Recording</a>
+ </div>
+ </div>
+ </div>
+ {% endfor %}
+ </div>
+ {% else %}
+ <p>No recordings right now...</p>
+ {% endif %}
+ <br/>
+ <a class="btn" href="/room#{{room.id}}">Back to '{{room.name}}'</a>
+{% endblock %}
+{% block validators %}
+<a href="http://feed1.w3.org/check.cgi?url={% baseurl %}/room/{{room.id}}/recordings.atom"><img src="{{STATIC_URL}}/img/valid-atom.png" alt="[Valid Atom 1.0]" title="Validate my Atom 1.0 feed" /></a>
+<a href="http://feed1.w3.org/check.cgi?url={% baseurl %}/room/{{room.id}}/recordings.rss"><img src="{{STATIC_URL}}/img/valid-rss-rogers.png" alt="[Valid RSS]" title="Validate my RSS feed" /></a>
+{% endblock %} \ No newline at end of file