Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
3.4 KiB
57 lines
3.4 KiB
from django.conf.urls import * # NOQA
|
|
from django.conf.urls import patterns, url
|
|
from django.contrib.auth.decorators import user_passes_test
|
|
from . import views, export
|
|
from utils import staff_member_required
|
|
|
|
staff_member_required = user_passes_test(lambda u: u.is_staff)
|
|
|
|
urlpatterns = [
|
|
url(r'^co-je-MaM/organizatori/$', views.CojemamOrganizatoriView.as_view(), name='organizatori'),
|
|
url(r'^co-je-MaM/organizatori/organizovali/$', views.CojemamOrganizatoriStariView.as_view(), name='stari_organizatori'),
|
|
|
|
url(r'^archiv/cisla/$', views.CislaView.as_view()),
|
|
url(r'^archiv/temata/$', views.ArchivTemataView.as_view()),
|
|
|
|
url(r'^rocnik/(?P<rocnik>\d+)/$', views.RocnikView.as_view(), name='seminar_rocnik'),
|
|
url(r'^cislo/(?P<rocnik>\d+)\.(?P<cislo>[0-9-]+)/$', views.CisloView.as_view(), name='seminar_cislo'),
|
|
url(r'^problem/(?P<pk>\d+)/$', views.ProblemView.as_view(), name='seminar_problem'),
|
|
|
|
url(r'^soustredeni/probehlo/$', views.SoustredeniListView.as_view(),
|
|
name = 'seminar_seznam_soustredeni'),
|
|
url(r'^soustredeni/probehlo/(?P<soustredeni>\d+)/$', views.SoustredeniView.as_view(), name='seminar_soustredeni'),
|
|
url(r'^soustredeni/(?P<soustredeni>\d+)/fotogalerie/', include('galerie.urls')),
|
|
|
|
url(r'^zadani/aktualni/$', views.AktualniZadaniView, name='seminar_aktualni_zadani'),
|
|
url(r'^zadani/temata/$', views.ZadaniTemataView, name='seminar_temata'),
|
|
url(r'^zadani/vysledkova-listina/$', views.ZadaniAktualniVysledkovkaView, name='seminar_vysledky'),
|
|
url(r'^$', views.TitulniStranaView.as_view(), name='titulni_strana'),
|
|
url(r'^stare-novinky/$', views.StareNovinkyView.as_view(), name='stare_novinky'),
|
|
|
|
url(r'^clanky/resitel/$', views.ClankyResitelView.as_view(), name='clanky_resitel'),
|
|
url(r'^clanky/org/$', views.ClankyOrganizatorView.as_view(), name='clanky_organizator'),
|
|
|
|
url(r'^aesop-export/mam-rocnik-(?P<prvni_rok>\d+)\.csv$', export.ExportRocnikView.as_view(), name='seminar_export_rocnik'),
|
|
url(r'^aesop-export/mam-sous-(?P<datum_zacatku>[\d-]+)\.csv$', export.ExportSousView.as_view(), name='seminar_export_sous'),
|
|
url(r'^aesop-export/index.csv$', export.ExportIndexView.as_view(), name='seminar_export_index'),
|
|
|
|
#### Stranky viditelne pouze pro orgy:
|
|
url(r'^cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/vysledkovka.tex$',
|
|
staff_member_required(views.CisloVysledkovkaView.as_view()), name='seminar_cislo_vysledkovka'),
|
|
url(r'^cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/obalky.pdf$',
|
|
staff_member_required(views.cisloObalkyView), name='seminar_cislo_obalky'),
|
|
|
|
url(r'^cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/tituly.tex$',
|
|
staff_member_required(views.TitulyView), name='seminar_cislo_titul'),
|
|
url(r'^stav$',
|
|
staff_member_required(views.StavDatabazeView), name='stav_databaze'),
|
|
url(r'^cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/obalkovani$',
|
|
staff_member_required(views.obalkovaniView), name='seminar_cislo_resitel_obalkovani'),
|
|
url(r'^cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/tex-download.json$',
|
|
staff_member_required(views.texDownloadView), name='seminar_tex_download'),
|
|
url(r'^soustredeni/(?P<soustredeni>\d+)/obalky.pdf',
|
|
staff_member_required(views.soustredeniObalkyView), name='seminar_soustredeni_obalky'),
|
|
|
|
url(r'^tex-upload/login/$', views.LoginView, name='seminar_login'),
|
|
url(r'^tex-upload/$', staff_member_required(views.texUploadView), name='seminar_tex_upload'),
|
|
]
|
|
|