Remaining Django 1.9 fixes.
[wolnelektury.git] / src / 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 url, include
6 from . import views
7
8
9 urlpatterns = [
10     url(r'^$', views.CurrentView.as_view(), name='funding_current'),
11     url(r'^teraz/$', views.CurrentView.as_view()),
12     url(r'^teraz/(?P<slug>[^/]+)/$', views.CurrentView.as_view(), name='funding_current'),
13     url(r'^lektura/$', views.OfferListView.as_view(), name='funding'),
14     url(r'^lektura/(?P<slug>[^/]+)/$', views.OfferDetailView.as_view(), name='funding_offer'),
15     url(r'^pozostale/$', views.WLFundView.as_view(), name='funding_wlfund'),
16
17     url(r'^dziekujemy/$', views.ThanksView.as_view(), name='funding_thanks'),
18     url(r'^niepowodzenie/$', views.NoThanksView.as_view(), name='funding_nothanks'),
19
20     url(r'^wylacz_email/$', views.DisableNotifications.as_view(), name='funding_disable_notifications'),
21
22     url(r'^getpaid/', include('getpaid.urls')),
23
24     # Includes
25     url(r'^o/(?P<pk>\d+)/top-bar\.(?P<lang>.+)\.html$', views.top_bar, name='funding_top_bar'),
26     url(r'^o/(?P<pk>\d+)/detail-bar\.(?P<lang>.+)\.html$', views.detail_bar, name='funding_detail_bar'),
27     url(r'^o/(?P<pk>\d+)/list-bar\.(?P<lang>.+)\.html$', views.list_bar, name='funding_list_bar'),
28     url(r'^o/(?P<pk>\d+)/status\.(?P<lang>.+)\.html$', views.offer_status, name='funding_status'),
29     url(r'^o/(?P<pk>\d+)/status-more\.(?P<lang>.+)\.html$', views.offer_status_more, name='funding_status_more'),
30     url(r'^o/(?P<pk>\d+)/fundings/(?P<page>\d+)\.(?P<lang>.+)\.html$', views.offer_fundings, name='funding_fundings'),
31 ]