Support longer tag names.
[wolnelektury.git] / apps / funding / urls.py
1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 #
5 from django.conf.urls import patterns, url, include
6
7 from .views import (WLFundView, OfferDetailView, OfferListView,
8                 ThanksView, NoThanksView, CurrentView, DisableNotifications)
9
10
11 urlpatterns = patterns('funding.views',
12
13     url(r'^$', CurrentView.as_view(), name='funding_current'),
14     url(r'^teraz/$', CurrentView.as_view()),
15     url(r'^teraz/(?P<slug>[^/]+)/$', CurrentView.as_view(), name='funding_current'),
16     url(r'^lektura/$', OfferListView.as_view(), name='funding'),
17     url(r'^lektura/(?P<slug>[^/]+)/$', OfferDetailView.as_view(), name='funding_offer'),
18     url(r'^pozostale/$', WLFundView.as_view(), name='funding_wlfund'),
19
20     url(r'^dziekujemy/$', ThanksView.as_view(), name='funding_thanks'),
21     url(r'^niepowodzenie/$', NoThanksView.as_view(), name='funding_nothanks'),
22
23     url(r'^wylacz_email/$', DisableNotifications.as_view(), name='funding_disable_notifications'),
24
25     url(r'^getpaid/', include('getpaid.urls')),
26
27     # Includes
28     url(r'^o/(?P<pk>\d+)/top-bar\.(?P<lang>.+)\.html$', 'top_bar', name='funding_top_bar'),
29     url(r'^o/(?P<pk>\d+)/detail-bar\.(?P<lang>.+)\.html$', 'detail_bar', name='funding_detail_bar'),
30     url(r'^o/(?P<pk>\d+)/list-bar\.(?P<lang>.+)\.html$', 'list_bar', name='funding_list_bar'),
31     url(r'^o/(?P<pk>\d+)/status\.(?P<lang>.+)\.html$', 'offer_status', name='funding_status'),
32     url(r'^o/(?P<pk>\d+)/status-more\.(?P<lang>.+)\.html$', 'offer_status_more', name='funding_status_more'),
33     url(r'^o/(?P<pk>\d+)/fundings/(?P<page>\d+)\.(?P<lang>.+)\.html$', 'offer_fundings', name='funding_fundings'),
34 )