Fixes #3866: Text counter with footnotes.
[redakcja.git] / src / catalogue / urls.py
1 # -*- coding: utf-8
2 from django.conf.urls import url
3 from django.contrib.auth.decorators import permission_required
4 from django.views.generic import RedirectView
5 from catalogue.feeds import PublishTrackFeed
6 from . import views
7
8
9 urlpatterns = [
10     url(r'^$', RedirectView.as_view(url='catalogue/', permanent=False)),
11
12     url(r'^images/$', views.image_list, name='catalogue_image_list'),
13     url(r'^image/(?P<slug>[^/]+)/$', views.image, name="catalogue_image"),
14     url(r'^image/(?P<slug>[^/]+)/publish$', views.publish_image,
15             name="catalogue_publish_image"),
16
17     url(r'^catalogue/$', views.document_list, name='catalogue_document_list'),
18     url(r'^user/$', views.my, name='catalogue_user'),
19     url(r'^user/(?P<username>[^/]+)/$', views.user, name='catalogue_user'),
20     url(r'^users/$', views.users, name='catalogue_users'),
21     url(r'^activity/$', views.activity, name='catalogue_activity'),
22     url(r'^activity/(?P<isodate>\d{4}-\d{2}-\d{2})/$', 
23         views.activity, name='catalogue_activity'),
24
25     url(r'^upload/$',
26         views.upload, name='catalogue_upload'),
27
28     url(r'^create/(?P<slug>[^/]*)/',
29         views.create_missing, name='catalogue_create_missing'),
30     url(r'^create/',
31         views.create_missing, name='catalogue_create_missing'),
32
33     url(r'^book/(?P<slug>[^/]+)/publish$', views.publish, name="catalogue_publish"),
34
35     url(r'^book/(?P<slug>[^/]+)/$', views.book, name="catalogue_book"),
36     url(r'^book/(?P<slug>[^/]+)/gallery/$',
37             permission_required('catalogue.change_book')(views.GalleryView.as_view()),
38             name="catalogue_book_gallery"),
39     url(r'^book/(?P<slug>[^/]+)/xml$', views.book_xml, name="catalogue_book_xml"),
40     url(r'^book/dc/(?P<slug>[^/]+)/xml$', views.book_xml_dc, name="catalogue_book_xml_dc"),
41     url(r'^book/(?P<slug>[^/]+)/txt$', views.book_txt, name="catalogue_book_txt"),
42     url(r'^book/(?P<slug>[^/]+)/html$', views.book_html, name="catalogue_book_html"),
43     url(r'^book/(?P<slug>[^/]+)/epub$', views.book_epub, name="catalogue_book_epub"),
44     url(r'^book/(?P<slug>[^/]+)/mobi$', views.book_mobi, name="catalogue_book_mobi"),
45     url(r'^book/(?P<slug>[^/]+)/pdf$', views.book_pdf, name="catalogue_book_pdf"),
46     url(r'^book/(?P<slug>[^/]+)/pdf-mobile$', views.book_pdf, kwargs={'mobile': True}, name="catalogue_book_pdf_mobile"),
47
48     url(r'^chunk_add/(?P<slug>[^/]+)/(?P<chunk>[^/]+)/$',
49         views.chunk_add, name="catalogue_chunk_add"),
50     url(r'^chunk_edit/(?P<slug>[^/]+)/(?P<chunk>[^/]+)/$',
51         views.chunk_edit, name="catalogue_chunk_edit"),
52     url(r'^book_append/(?P<slug>[^/]+)/$',
53         views.book_append, name="catalogue_book_append"),
54     url(r'^chunk_mass_edit',
55         views.chunk_mass_edit, name='catalogue_chunk_mass_edit'),
56     url(r'^image_mass_edit',
57         views.image_mass_edit, name='catalogue_image_mass_edit'),
58
59     url(r'^track/(?P<slug>[^/]*)/$', PublishTrackFeed()),
60     url(r'^active/$', views.active_users_list, name='active_users_list'),
61
62     url(r'^mark-final/$', views.mark_final, name='mark_final'),
63     url(r'^mark-final-completed/$', views.mark_final_completed, name='mark_final_completed'),
64 ]