|
|
|
from django.urls import path, include, re_path
|
|
|
|
from . import views
|
|
|
|
from .utils import org_required
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
# path('aktualni/temata/', views.TemataRozcestnikView),
|
|
|
|
# path('<int:rocnik>/t<int:tematko>/', views.TematkoView),
|
|
|
|
|
|
|
|
# Organizatori
|
|
|
|
path('o-nas/organizatori/', views.CojemamOrganizatoriView.as_view(), name='organizatori'),
|
|
|
|
path('o-nas/organizatori/organizovali/', views.CojemamOrganizatoriStariView.as_view(), name='stari_organizatori'),
|
|
|
|
|
|
|
|
# Archiv
|
|
|
|
path('archiv/rocniky/', views.ArchivView.as_view(), name="seminar_archiv_rocniky"),
|
|
|
|
path('archiv/temata/', views.ArchivTemataView.as_view(), name="seminar_archiv_temata"),
|
|
|
|
|
|
|
|
path('rocnik/<int:rocnik>/', views.RocnikView.as_view(), name='seminar_rocnik'),
|
|
|
|
path('cislo/<int:rocnik>.<str:cislo>/', views.CisloView.as_view(), name='seminar_cislo'),
|
|
|
|
path('problem/<int:pk>/', views.problemView, name='seminar_problem'),
|
|
|
|
|
|
|
|
# Zadani
|
|
|
|
# path('aktualni/zadani/', views.AktualniZadaniView.as_view(), name='seminar_aktualni_zadani'), # Dočasně ad-hoc jednoduchá věc.
|
|
|
|
path('aktualni/zadani/', views.AktualniZadaniView, name='seminar_aktualni_zadani'),
|
|
|
|
#path('aktualni/temata/', views.ZadaniTemataView, name='seminar_temata'),
|
|
|
|
path('aktualni/vysledkova-listina/', views.ZadaniAktualniVysledkovkaView, name='seminar_aktualni_vysledky'),
|
|
|
|
path('aktualni/rocnik/', views.AktualniRocnikRedirectView.as_view(), name='seminar_aktualni_rocnik'),
|
|
|
|
path('stare-novinky/', views.StareNovinkyView.as_view(), name='stare_novinky'),
|
|
|
|
|
|
|
|
# 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='seminar_rocnik_vysledkovka'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'cislo/<int:rocnik>.<str:cislo>/vysledkovka.tex',
|
|
|
|
org_required(views.CisloVysledkovkaView.as_view()),
|
|
|
|
name='seminar_cislo_vysledkovka'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'cislo/<int:rocnik>.<str:cislo>/obalky.pdf',
|
|
|
|
org_required(views.cisloObalkyView),
|
|
|
|
name='seminar_cislo_obalky'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'cislo/<int:rocnik>.<str:cislo>/tituly.tex',
|
|
|
|
org_required(views.TitulyView),
|
|
|
|
name='seminar_cislo_titul'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'stav',
|
|
|
|
org_required(views.StavDatabazeView),
|
|
|
|
name='stav_databaze'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'cislo/<int:rocnik>.<str:cislo>/obalkovani',
|
|
|
|
org_required(views.ObalkovaniView.as_view()),
|
|
|
|
name='seminar_cislo_resitel_obalkovani'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'cislo/<int:trocnik>.<str:tcislo>/odmeny/<int:frocnik>.<str:fcislo>/',
|
|
|
|
org_required(views.OdmenyView.as_view()),
|
|
|
|
name="seminar_archiv_odmeny"),
|
|
|
|
|
|
|
|
path('', views.TitulniStranaView.as_view(), name='titulni_strana'),
|
|
|
|
path('jak-resit/', views.JakResitView.as_view(), name='jak_resit'),
|
|
|
|
]
|