summaryrefslogtreecommitdiff
path: root/src/templates/apps/room/recordings.html
blob: 8e95b09d7ef3a149d3f132f26b3dc69cbb102e18 (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
{% 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 %}