Minor upgrades.
[redakcja.git] / src / wiki / urls.py
1 # -*- coding: utf-8
2 from django.conf.urls import url
3 from . import views
4
5
6 urlpatterns = [
7     url(r'^edit/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
8         views.editor, name="wiki_editor"),
9
10     url(r'^readonly/(?P<slug>[^/]+)/(?:(?P<chunk>[^/]+)/)?$',
11         views.editor_readonly, name="wiki_editor_readonly"),
12
13     url(r'^gallery/(?P<directory>[^/]+)/$',
14         views.gallery, name="wiki_gallery"),
15
16     url(r'^history/(?P<chunk_id>\d+)/$',
17         views.history, name="wiki_history"),
18
19     url(r'^rev/(?P<chunk_id>\d+)/$',
20         views.revision, name="wiki_revision"),
21
22     url(r'^text/(?P<chunk_id>\d+)/$',
23         views.text, name="wiki_text"),
24
25     url(r'^revert/(?P<chunk_id>\d+)/$',
26         views.revert, name='wiki_revert'),
27
28     url(r'^diff/(?P<chunk_id>\d+)/$', views.diff, name="wiki_diff"),
29     url(r'^pubmark/(?P<chunk_id>\d+)/$', views.pubmark, name="wiki_pubmark"),
30
31     url(r'^themes$', views.themes, name="themes"),
32 ]