From c55f240e849acffed46f3ea42b5c28fe4989e540 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Mon, 20 Feb 2012 20:35:12 +0100 Subject: [PATCH 1/2] some bug fixes --- .../agenda/templates/agenda/overview.html | 146 ++++++++++-------- .../templates/projector/AgendaSummary.html | 3 + .../templates/projector/AgendaText.html | 4 + .../projector/templates/base-projector.html | 59 +++---- openslides/projector/urls.py | 20 +-- openslides/static/javascript/projector.js | 7 +- openslides/system/__init__.py | 2 +- openslides/urls.py | 2 +- 8 files changed, 135 insertions(+), 108 deletions(-) diff --git a/openslides/agenda/templates/agenda/overview.html b/openslides/agenda/templates/agenda/overview.html index 6701157c9..1f4cf2dc9 100644 --- a/openslides/agenda/templates/agenda/overview.html +++ b/openslides/agenda/templates/agenda/overview.html @@ -10,28 +10,28 @@ {% if perms.agenda.can_manage_agenda %} - - - - - + + + + + - {% endif %} {% endblock %} @@ -41,44 +41,60 @@ {% if items %}
{% csrf_token %} {% if perms.agenda.can_manage_agenda %} - + -
- - - {% trans "Countdown" %} ({{countdown_time}}{% trans "sec" %}){% if countdown_visible == "True" %}: - - - - {% endif %} -

- - {% trans "Adjust projector view" %}: - - - - - -
+
+ + + {% trans "Countdown" %} ({{countdown_time}}{% trans "sec" %}) + {% if countdown_visible == "True" %}: + + + + + + + + + + {% endif %} +

+ + {% trans "Adjust projector view" %}: + + + + + + + + + + + + + + + +
{% endif %} {% if perms.agenda.can_manage_agenda %} - + {% else %} - + {% endif %} {% if perms.agenda.can_manage_agenda %} - + {% endif %} @@ -91,10 +107,13 @@ {% else %} {% endif %} - - + @@ -106,7 +125,7 @@ {% if perms.agenda.can_manage_agenda %} {% else %} @@ -130,19 +149,19 @@ {% if perms.agenda.can_manage_agenda %} @@ -157,7 +176,6 @@ {% endfor %} -
{% else %} {% trans "No items available." %} diff --git a/openslides/agenda/templates/projector/AgendaSummary.html b/openslides/agenda/templates/projector/AgendaSummary.html index aa8fcc3f8..eaa32205d 100644 --- a/openslides/agenda/templates/projector/AgendaSummary.html +++ b/openslides/agenda/templates/projector/AgendaSummary.html @@ -1,4 +1,7 @@ {% extends "base-projector.html" %} + +{% load i18n %} + {% block title %}{{ block.super }} - {% if title %} {{ title }} {% else %} {%trans "Agenda" %} {% endif %} {% endblock %} diff --git a/openslides/agenda/templates/projector/AgendaText.html b/openslides/agenda/templates/projector/AgendaText.html index 3b7767ffe..32d3f57b3 100644 --- a/openslides/agenda/templates/projector/AgendaText.html +++ b/openslides/agenda/templates/projector/AgendaText.html @@ -1,5 +1,9 @@ {% extends "base-projector.html" %} + +{% load i18n %} + {% block title %}{{ block.super }} - {{ item.title }}{% endblock %} + {% block content %} {% if item.text %}

{{ item.title }}

diff --git a/openslides/projector/templates/base-projector.html b/openslides/projector/templates/base-projector.html index 20aa533e2..f239d95b6 100644 --- a/openslides/projector/templates/base-projector.html +++ b/openslides/projector/templates/base-projector.html @@ -1,38 +1,39 @@ +{% load tags %} + -{% load tags %} - - - - - - {% block title %} {% get_config 'event_name' %} {% endblock %} - {% block header %} - {% endblock %} - - - -
+ + + + + + {% block title %} {% get_config 'event_name' %} {% endblock %} + {% block header %} + {% endblock %} + + + +
- + -
- {% now "H:i" %} -
+
+ {% now "H:i" %} +
-
0:00
+
0:00
-
- {% block content %} - {% endblock %} -
- +
+ {% block content %} + {% endblock %} +
+ diff --git a/openslides/projector/urls.py b/openslides/projector/urls.py index ac0f10e6c..4ee2cf939 100644 --- a/openslides/projector/urls.py +++ b/openslides/projector/urls.py @@ -16,33 +16,33 @@ urlpatterns = patterns('projector.views', url(r'^$', 'active_slide', name='projector_show'), - url(r'^bigger$', 'projector_edit', {'direction': 'bigger'}, + url(r'^bigger/$', 'projector_edit', {'direction': 'bigger'}, name='projector_bigger'), - url(r'^smaller$', 'projector_edit', {'direction': 'smaller'}, + url(r'^smaller/$', 'projector_edit', {'direction': 'smaller'}, name='projector_smaller'), - url(r'^up$', 'projector_edit', {'direction': 'up'}, + url(r'^up/$', 'projector_edit', {'direction': 'up'}, name='projector_up'), - url(r'^projector/down$', 'projector_edit', {'direction': 'down'}, + url(r'^down/$', 'projector_edit', {'direction': 'down'}, name='projector_down'), - url(r'^projector/clean$', 'projector_edit', {'direction': 'clean'}, + url(r'^clean/$', 'projector_edit', {'direction': 'clean'}, name='projector_clean'), - url(r'^projector/countdown/show$', 'projector_countdown', {'command': 'show'}, + url(r'^countdown/show/$', 'projector_countdown', {'command': 'show'}, name='countdown_open'), - url(r'^projector/countdown/hide$', 'projector_countdown', {'command': 'hide'}, + url(r'^countdown/hide/$', 'projector_countdown', {'command': 'hide'}, name='countdown_close'), - url(r'^projector/countdown/reset/(?P