2013-02-16 16:19:20 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
from django.conf.urls import patterns, url
|
2013-02-16 16:19:20 +01:00
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
from . import views
|
2013-02-16 16:19:20 +01:00
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2013-02-16 16:19:20 +01:00
|
|
|
url(r'^$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.MediafileListView.as_view(),
|
|
|
|
name='mediafile_list'),
|
2013-02-16 16:19:20 +01:00
|
|
|
|
|
|
|
url(r'^new/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.MediafileCreateView.as_view(),
|
|
|
|
name='mediafile_create'),
|
2013-02-16 16:19:20 +01:00
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/edit/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.MediafileUpdateView.as_view(),
|
|
|
|
name='mediafile_update'),
|
2013-02-16 16:19:20 +01:00
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/del/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.MediafileDeleteView.as_view(),
|
|
|
|
name='mediafile_delete'),
|
2013-10-04 11:38:39 +02:00
|
|
|
url(r'^pdf/next/$', views.PdfNextView.as_view(), name='next_pdf_page'),
|
|
|
|
url(r'^pdf/prev/$', views.PdfPreviousView.as_view(), name='prev_pdf_page'),
|
|
|
|
url(r'^pdf/target_page/$',
|
|
|
|
views.PdfGoToPageView.as_view(),
|
|
|
|
name='target_pdf_page'),
|
|
|
|
url(r'^pdf/toggle_fullscreen/$',
|
|
|
|
views.PdfToggleFullscreenView.as_view(),
|
|
|
|
name='toggle_fullscreen')
|
2013-02-16 16:19:20 +01:00
|
|
|
)
|