diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-16 17:57:45 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-16 17:57:45 +0200 |
commit | 8f6f63c87128906be86fdfdf53aba48570677e87 (patch) | |
tree | 443ae2807ace7ed11306699c69cd4f209352874e /templates/apps/room/recordings.html | |
parent | a15a4d81d5520adbfbbc5509202e32b1b56f826a (diff) |
- normalize sco objects to separate tablesco
- add archive object for "published" archives
- configurable return from form edits
- tagging for archives
- reset south
Diffstat (limited to 'templates/apps/room/recordings.html')
-rw-r--r-- | templates/apps/room/recordings.html | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/templates/apps/room/recordings.html b/templates/apps/room/recordings.html index 3b83919..0ee4ebd 100644 --- a/templates/apps/room/recordings.html +++ b/templates/apps/room/recordings.html @@ -17,19 +17,30 @@ <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" data-target="#{{r.sco_id}}" data-parent="#recordings" href="#{{r.sco_id}}">{{r.name}}</a></div> - <div id="{{r.sco_id}}" class="accordion-body collapse"> + <div class="accordion-heading"><a class="accordion-toggle" data-toggle="collapse" data-target="#{{r.sco.sco_id}}" data-parent="#recordings" href="#{{r.sco_id}}">{{r.name}}</a></div> + <div id="{{r.sco.sco_id}}" class="accordion-body collapse"> <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>» Created {{r.date_created|datehumanize}}.</li> <li>» Modified {{r.date_modified|datehumanize}}.</li> - <li>» Hosted on {{room.acc.name}}</li> - </ul> + <li>» Hosted on {{room.sco.acc.name}}</li> + {% if r.published %} + {% tags_for_object r.ar as tags %} + {% if tags %}<li>» {% for tag in tags %}<a class="badge" href="/archive/+{{tag}}">{{tag}}</a>{% endfor %}{%if edit %} <a class="btn btn-mini btn-info" href="/archive/{{r.id}}/tag">manage archive tags</a>{%endif%}</li>{% endif %} + {% endif %} + </ul> + <div class="btn-group"> - <a class="btn btn-info" target="_connect" href="{{r.url}}">Play Recording</a> - <a class="btn btn-info" href="{{r.dl}}">Download Recording</a> + <a class="btn" target="_connect" href="{{r.url}}"><i class="icon-play"> </i> Play</a> + <a class="btn" href="{{r.dl}}"><i class="icon-download"> </i> Download</a> + {% if not r.published %} + <a class="btn btn-success" href="/room/{{room.id}}/publish/{{r.sco.sco_id}}"><i class="icon-upload"> </i> Publish</a> + {% else %} + <a class="btn" href="/archive/{{r.ar.id}}/tag">Manage Tags</a> + {% endif %} </div> </div> </div> @@ -40,7 +51,7 @@ <p>No recordings right now...</p> {% endif %} <br/> - <a class="btn" href="/room#{{room.id}}">Back to '{{room.name}}'</a> + <a class="btn" href="/room#{{room.id}}"><i class="icon-step-backward"> </i> Back to '{{room.name}}'</a> {% endblock %} {% block validators %} <a href="http://feed1.w3.org/check.cgi?url=/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> |