diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/apps/archive/tag.html | 32 | ||||
-rw-r--r-- | templates/apps/room/recordings.html | 25 | ||||
-rw-r--r-- | templates/edit.html | 2 |
3 files changed, 51 insertions, 8 deletions
diff --git a/templates/apps/archive/tag.html b/templates/apps/archive/tag.html new file mode 100644 index 0000000..abd7602 --- /dev/null +++ b/templates/apps/archive/tag.html @@ -0,0 +1,32 @@ +{% extends "edit.html" %} +{% load datehumanize %} +{% load roomurl %} +{% block widgets %} + +{% endblock %} +{% block formstyle %} +class="form-inline" +{% endblock %} +{% block justbeforeform %} +<div> + <div class="alert"> + <i class="icon-info-sign"> </i> + <strong>Note Well</strong> Tags are a way to group related recordings together. Tagging your + recording makes your recording show up in public lists of recordings hosted on this service and it + therefore makes your recording visible. This does <em>not</em> mean that anyone can access + your recording. + </div> + {% if tags %} + <div style="margin-bottom: 20px;"> + {% for tag in tags %} + <span class="btn-group"> + <a class="btn btn-small" href="/archive/+{{tag}}">{{tag}}</a> + <a class="btn btn-small btn-warning" href="/archive/{{archive.id}}/untag/{{tag}}"><i class="icon-remove"></i></a> + </span> + {% endfor %} + </div> + {% else %} + <div class="alert">There are no tags yet...</div> +</div> + {% endif %} +{% endblock %} 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> diff --git a/templates/edit.html b/templates/edit.html index 5d04b3f..3542214 100644 --- a/templates/edit.html +++ b/templates/edit.html @@ -21,7 +21,7 @@ {% endif %} {% endfor %} <div class="form-actions"> - <input type="button" class="btn" onClick="document.location='/rooms'" value="{{cancelname}}"/> + <input type="button" class="btn" onClick="document.location='{{cancelurl}}'" value="{{cancelname}}"/> <input class="btn btn-success" type="submit" value="{{submitname}}" /> </div> </form> |