Collections in catalogue.
[redakcja.git] / src / wiki / urls.py
1 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.conf.urls import url
5 from . import views
6
7
8 urlpatterns = [
9     url(r'^edit/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
10         views.editor, name="wiki_editor"),
11
12     url(r'^readonly/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
13         views.editor_readonly, name="wiki_editor_readonly"),
14
15     url(r'^gallery/(?P<directory>[^/]+)/$',
16         views.gallery, name="wiki_gallery"),
17
18     url(r'^history/(?P<chunk_id>\d+)/$',
19         views.history, name="wiki_history"),
20
21     url(r'^rev/(?P<chunk_id>\d+)/$',
22         views.revision, name="wiki_revision"),
23
24     url(r'^text/(?P<chunk_id>\d+)/$',
25         views.text, name="wiki_text"),
26
27     url(r'^revert/(?P<chunk_id>\d+)/$',
28         views.revert, name='wiki_revert'),
29
30     url(r'^diff/(?P<chunk_id>\d+)/$', views.diff, name="wiki_diff"),
31     url(r'^pubmark/(?P<chunk_id>\d+)/$', views.pubmark, name="wiki_pubmark"),
32
33     url(r'^themes$', views.themes, name="themes"),
34 ]