From 8f6f63c87128906be86fdfdf53aba48570677e87 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 16 Oct 2012 17:57:45 +0200 Subject: - normalize sco objects to separate table - add archive object for "published" archives - configurable return from form edits - tagging for archives - reset south --- templates/apps/archive/tag.html | 32 ++++++++++++++++++++++++++++++++ templates/apps/room/recordings.html | 25 ++++++++++++++++++------- templates/edit.html | 2 +- 3 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 templates/apps/archive/tag.html (limited to 'templates') 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 %} +
+
+ + Note Well 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 not mean that anyone can access + your recording. +
+ {% if tags %} +
+ {% for tag in tags %} + + {{tag}}  + + + {% endfor %} +
+ {% else %} +
There are no tags yet...
+
+ {% 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 @@
{% for r in recordings %}
- -
+ +
+

{{r.url}}

{% if r.description %}{{r.description|safe}}{% else %}No description available...{% endif %}
  • » Created {{r.date_created|datehumanize}}.
  • » Modified {{r.date_modified|datehumanize}}.
  • -
  • » Hosted on {{room.acc.name}}
  • -
+
  • » Hosted on {{room.sco.acc.name}}
  • + {% if r.published %} + {% tags_for_object r.ar as tags %} + {% if tags %}
  • » {% for tag in tags %}{{tag}}{% endfor %}{%if edit %} manage archive tags{%endif%}
  • {% endif %} + {% endif %} + +
    - Play Recording - Download Recording + Play + Download + {% if not r.published %} + Publish + {% else %} + Manage Tags + {% endif %}
    @@ -40,7 +51,7 @@

    No recordings right now...

    {% endif %}
    - Back to '{{room.name}}' + Back to '{{room.name}}' {% endblock %} {% block validators %} [Valid Atom 1.0] 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 %}
    - +
    -- cgit v1.1