X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..008b2c8d44987a6ef6b405ffc2124f28d3c6220d:/src/wiki/urls.py diff --git a/src/wiki/urls.py b/src/wiki/urls.py index 0c73aed9..f1a45087 100644 --- a/src/wiki/urls.py +++ b/src/wiki/urls.py @@ -1,31 +1,37 @@ -# -*- coding: utf-8 -from django.conf.urls import patterns, url +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from django.conf.urls import url +from . import views -urlpatterns = patterns('wiki.views', +urlpatterns = [ url(r'^edit/(?P[^/]+)/(?:(?P[^/]+)/)?$', - 'editor', name="wiki_editor"), + views.editor, name="wiki_editor"), url(r'^readonly/(?P[^/]+)/(?:(?P[^/]+)/)?$', - 'editor_readonly', name="wiki_editor_readonly"), + views.editor_readonly, name="wiki_editor_readonly"), url(r'^gallery/(?P[^/]+)/$', - 'gallery', name="wiki_gallery"), + views.gallery, name="wiki_gallery"), url(r'^history/(?P\d+)/$', - 'history', name="wiki_history"), + views.history, name="wiki_history"), url(r'^rev/(?P\d+)/$', - 'revision', name="wiki_revision"), + views.revision, name="wiki_revision"), url(r'^text/(?P\d+)/$', - 'text', name="wiki_text"), + views.text, name="wiki_text"), url(r'^revert/(?P\d+)/$', - 'revert', name='wiki_revert'), + views.revert, name='wiki_revert'), - url(r'^diff/(?P\d+)/$', 'diff', name="wiki_diff"), - url(r'^pubmark/(?P\d+)/$', 'pubmark', name="wiki_pubmark"), + url(r'^diff/(?P\d+)/$', views.diff, name="wiki_diff"), + url(r'^pubmark/(?P\d+)/$', views.pubmark, name="wiki_pubmark"), - url(r'^themes$', 'themes', name="themes"), -) + url(r'^themes$', views.themes, name="themes"), + + url(r'^back/$', views.back), + url(r'^editor-user-area/$', views.editor_user_area), +]