OpenSlides/openslides/projector/urls.py

85 lines
2.3 KiB
Python
Raw Normal View History

2012-02-06 22:08:08 +01:00
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
2012-02-06 22:08:08 +01:00
from . import views
2012-03-12 18:22:18 +01:00
urlpatterns = patterns(
'',
url(r'^$',
2013-10-29 18:28:05 +01:00
views.ProjectorView.as_view(),
name='projector_show'),
2012-04-18 15:47:51 +02:00
url(r'^preview/(?P<callback>[^/]*)/$',
2013-10-29 18:28:05 +01:00
views.ProjectorView.as_view(),
name='projector_preview'),
2012-02-06 22:08:08 +01:00
url(r'^activate/(?P<callback>[^/]*)/$',
views.ActivateView.as_view(),
name='projector_activate_slide'),
2012-03-03 09:11:56 +01:00
2012-08-15 18:00:22 +02:00
url(r'^overlay_message/$',
views.OverlayMessageView.as_view(),
name='projector_overlay_message'),
2012-08-15 18:00:22 +02:00
url(r'^bigger/$',
views.ProjectorControllView.as_view(),
{'direction': 'bigger'},
name='projector_bigger'),
2012-02-06 22:08:08 +01:00
url(r'^smaller/$',
views.ProjectorControllView.as_view(),
{'direction': 'smaller'},
name='projector_smaller'),
2012-02-06 22:08:08 +01:00
url(r'^up/$',
views.ProjectorControllView.as_view(),
{'direction': 'up'},
name='projector_up'),
2012-02-06 22:08:08 +01:00
url(r'^down/$',
views.ProjectorControllView.as_view(),
{'direction': 'down'},
name='projector_down'),
2012-02-06 22:08:08 +01:00
url(r'^clean/scale/$',
views.ProjectorControllView.as_view(),
{'direction': 'clean_scale'},
name='projector_clean_scale'),
url(r'^clean/scroll/$',
views.ProjectorControllView.as_view(),
{'direction': 'clean_scroll'},
name='projector_clean_scroll'),
2012-02-06 22:08:08 +01:00
url(r'^countdown/reset/$',
views.CountdownControllView.as_view(),
{'command': 'reset'},
name='countdown_reset'),
2012-02-06 22:08:08 +01:00
url(r'^countdown/start/$',
views.CountdownControllView.as_view(),
{'command': 'start'},
name='countdown_start'),
2012-02-06 22:08:08 +01:00
url(r'^countdown/stop/$',
views.CountdownControllView.as_view(),
{'command': 'stop'},
name='countdown_stop'),
url(r'^countdown/set-default/$',
views.CountdownControllView.as_view(),
{'command': 'set-default'},
name='countdown_set_default'),
2012-07-04 02:43:26 +02:00
url('^overlay/(?P<name>[^/]*)/activate/$',
views.ActivateOverlay.as_view(),
2012-07-04 02:43:26 +02:00
{'activate': True},
name='projector_overlay_activate'),
2012-07-04 02:43:26 +02:00
url('^overlay/(?P<name>[^/]*)/deactivate/$',
views.ActivateOverlay.as_view(),
2012-07-04 02:43:26 +02:00
{'activate': False},
name='projector_overlay_deactivate'),
2012-02-06 22:08:08 +01:00
)