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