From e5e29806cf16d3dff7cb74f9e1acd4159570d4c9 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 8 Oct 2012 09:55:31 +0200 Subject: toggle open/close for accordions based on location.hash --- templates/apps/room/list.html | 5 ++--- templates/apps/room/recordings.html | 11 +++++------ templates/base.html | 5 +++++ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/templates/apps/room/list.html b/templates/apps/room/list.html index 4e83466..52263b7 100644 --- a/templates/apps/room/list.html +++ b/templates/apps/room/list.html @@ -3,7 +3,6 @@ {% load roomurl %} {% load tagging_tags %} {% block widgets %} - $(".collapse").collapse({'parent': '#rooms'}); $(".occupation").click(function(e) { $(this).find(".occupation-info").first().load("/api/room/"+$(this).parents('.accordion-body').attr('id')+"/occupation") }); @@ -28,8 +27,8 @@
{% for r in rooms %}
- -
+ +
{% tags_for_object r as tags %}

{{r|roomurl}}

diff --git a/templates/apps/room/recordings.html b/templates/apps/room/recordings.html index 8e95b09..8921b4d 100644 --- a/templates/apps/room/recordings.html +++ b/templates/apps/room/recordings.html @@ -1,10 +1,9 @@ {% extends "base.html" %} - {% load datehumanize %} {% load roomurl %} {% load tagging_tags %} {% block widgets %} -$(".collapse").collapse({'parent': '#recordings'}); +//$(".collapse").collapse({'parent': '#recordings'}); {% endblock %} {% block meta %} @@ -18,8 +17,8 @@ $(".collapse").collapse({'parent': '#recordings'});
{% for r in recordings %}
- -
+ +

{{r.url}}

{% if r.description %}{{r.description|safe}}{% else %}No description available...{% endif %}
@@ -41,6 +40,6 @@ $(".collapse").collapse({'parent': '#recordings'}); Back to '{{room.name}}' {% endblock %} {% block validators %} -[Valid Atom 1.0] -[Valid RSS] +[Valid Atom 1.0] +[Valid RSS] {% endblock %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 4bd9d80..5353fdd 100644 --- a/templates/base.html +++ b/templates/base.html @@ -106,5 +106,10 @@
+ -- cgit v1.1