From 6273f0ff44a7d9c94b7a94d09bf28b0c5905c10e Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Fri, 3 Feb 2012 20:49:16 +0100 Subject: [PATCH] beamer zeug in extra app ausgelagert --- .../agenda/templates/agenda/base_agenda.html | 2 +- openslides/agenda/urls.py | 23 ---- openslides/agenda/views.py | 87 ------------- openslides/beamer/__init__.py | 0 openslides/beamer/models.py | 3 + .../{agenda => beamer}/templates/beamer.html | 0 .../templates/beamer/ItemApplication.html | 0 .../templates/beamer/ItemAssignment.html | 0 .../templates/beamer/ItemPoll.html | 0 .../templates/beamer/ItemText.html | 0 .../templates/beamer/overview.html | 0 openslides/beamer/tests.py | 16 +++ openslides/beamer/urls.py | 47 +++++++ openslides/beamer/views.py | 118 ++++++++++++++++++ openslides/default.settings.py | 1 + openslides/static/javascript/beamer.js | 6 +- openslides/urls.py | 1 + 17 files changed, 190 insertions(+), 114 deletions(-) create mode 100644 openslides/beamer/__init__.py create mode 100644 openslides/beamer/models.py rename openslides/{agenda => beamer}/templates/beamer.html (100%) rename openslides/{agenda => beamer}/templates/beamer/ItemApplication.html (100%) rename openslides/{agenda => beamer}/templates/beamer/ItemAssignment.html (100%) rename openslides/{agenda => beamer}/templates/beamer/ItemPoll.html (100%) rename openslides/{agenda => beamer}/templates/beamer/ItemText.html (100%) rename openslides/{agenda => beamer}/templates/beamer/overview.html (100%) create mode 100644 openslides/beamer/tests.py create mode 100644 openslides/beamer/urls.py create mode 100644 openslides/beamer/views.py diff --git a/openslides/agenda/templates/agenda/base_agenda.html b/openslides/agenda/templates/agenda/base_agenda.html index 457b531f8..8b4f73db0 100644 --- a/openslides/agenda/templates/agenda/base_agenda.html +++ b/openslides/agenda/templates/agenda/base_agenda.html @@ -11,7 +11,7 @@
  • {%trans "New item" %}
  • {% endif %} {% if perms.agenda.can_see_projector %} -
  • {%trans 'Projector view' %}
  • +
  • {%trans 'Projector view' %}
  • {% endif %} {% endblock %} diff --git a/openslides/agenda/urls.py b/openslides/agenda/urls.py index c04888ee1..e890540db 100644 --- a/openslides/agenda/urls.py +++ b/openslides/agenda/urls.py @@ -13,9 +13,6 @@ from django.conf.urls.defaults import * urlpatterns = patterns('agenda.views', - url(r'^beamer/$', 'beamer', - name='item_beamer'), - url(r'^$', 'overview'), url(r'^agenda/$', 'overview', @@ -56,24 +53,4 @@ urlpatterns = patterns('agenda.views', url(r'^agenda/print/$', 'print_agenda', name='print_agenda'), - - url(r'^beamer/bigger$', 'beamer_edit', {'direction': 'bigger'}, name='beamer_bigger'), - - url(r'^beamer/smaller$', 'beamer_edit', {'direction': 'smaller'}, name='beamer_smaller'), - - url(r'^beamer/up$', 'beamer_edit', {'direction': 'up'}, name='beamer_up'), - - url(r'^beamer/down$', 'beamer_edit', {'direction': 'down'}, name='beamer_down'), - - url(r'^beamer/clean$', 'beamer_edit', {'direction': 'clean'}, name='beamer_clean'), - - url(r'^beamer/countdown/show$', 'beamer_countdown', {'command': 'show'}, name='countdown_open'), - - url(r'^beamer/countdown/hide$', 'beamer_countdown', {'command': 'hide'}, name='countdown_close'), - - url(r'^beamer/countdown/reset/(?P