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.
75 lines
2.6 KiB
75 lines
2.6 KiB
from django.urls import path, include, re_path
|
|
from . import views
|
|
from personalni.utils import org_required
|
|
|
|
urlpatterns = [
|
|
# path('aktualni/temata/', views.TemataRozcestnikView),
|
|
# path('<int:rocnik>/t<int:tematko>/', views.TematkoView),
|
|
|
|
# Archiv
|
|
path('archiv/rocniky/', views.ArchivView.as_view(), name="tvorba_archiv_rocniky"),
|
|
path('archiv/temata/', views.ArchivTemataView.as_view(), name="tvorba_archiv_temata"),
|
|
|
|
path('rocnik/<int:rocnik>/', views.RocnikView.as_view(), name='tvorba_rocnik'),
|
|
path('cislo/<int:rocnik>.<str:cislo>/', views.CisloView.as_view(), name='tvorba_cislo'),
|
|
path('problem/<int:pk>/', views.problemView, name='tvorba_problem'),
|
|
|
|
# Zadani
|
|
# path('aktualni/zadani/', views.AktualniZadaniView.as_view(), name='tvorba_aktualni_zadani'), # Dočasně ad-hoc jednoduchá věc.
|
|
path('aktualni/zadani/', views.AktualniZadaniView, name='tvorba_aktualni_zadani'),
|
|
#path('aktualni/temata/', views.ZadaniTemataView, name='tvorba_temata'),
|
|
path('aktualni/vysledkova-listina/', views.ZadaniAktualniVysledkovkaView, name='tvorba_aktualni_vysledky'),
|
|
path('aktualni/rocnik/', views.AktualniRocnikRedirectView.as_view(), name='tvorba_aktualni_rocnik'),
|
|
|
|
# Clanky
|
|
path('archiv/clanky/', views.ClankyResitelView.as_view(), name='clanky_resitel'),
|
|
#path('clanky/org/', views.ClankyOrganizatorView.as_view(), name='clanky_organizator'),
|
|
|
|
# Stranky viditelne pouze pro orgy:
|
|
path(
|
|
'rocnik/<int:rocnik>/vysledkovka.tex',
|
|
org_required(views.RocnikVysledkovkaView.as_view()),
|
|
name='tvorba_rocnik_vysledkovka'
|
|
),
|
|
path(
|
|
'rocnik/<int:rocnik>/resitele.csv',
|
|
org_required(views.resiteleRocnikuCsvExportView),
|
|
name='tvorba_rocnik_resitele_csv'
|
|
),
|
|
path(
|
|
'rocnik/<int:rocnik>/tituly.tex',
|
|
org_required(views.TitulyViewRocnik),
|
|
name='tvorba_rocnik_titul'
|
|
),
|
|
path(
|
|
'rocnik/<int:rocnik>/posledni_vysledkovka.tex',
|
|
org_required(views.PosledniCisloVysledkovkaView.as_view()),
|
|
name='tvorba_rocnik_posledni_vysledkovka'
|
|
),
|
|
path(
|
|
'cislo/<int:rocnik>.<str:cislo>/vysledkovka.tex',
|
|
org_required(views.CisloVysledkovkaView.as_view()),
|
|
name='tvorba_cislo_vysledkovka'
|
|
),
|
|
path(
|
|
'cislo/<int:rocnik>.<str:cislo>/obalky.pdf',
|
|
org_required(views.cisloObalkyView),
|
|
name='tvorba_cislo_obalky'
|
|
),
|
|
path(
|
|
'cislo/<int:rocnik>.<str:cislo>/tituly.tex',
|
|
org_required(views.TitulyView),
|
|
name='tvorba_cislo_titul'
|
|
),
|
|
path(
|
|
'cislo/<int:trocnik>.<str:tcislo>/odmeny/<int:frocnik>.<str:fcislo>/',
|
|
org_required(views.OdmenyView.as_view()),
|
|
name="tvorba_archiv_odmeny"),
|
|
|
|
# Dočasné & neodladěné:
|
|
path(
|
|
'hidden/hromadne_pridani',
|
|
org_required(views.HromadnePridaniView.as_view()),
|
|
name="hromadne_pridani"
|
|
),
|
|
]
|
|
|