Browse Source

Meníčko předěláno na hledání podle jmen URLs

FIXME: Výsledkovka (a možná pár dalších) jsou pořád ještě podle cesty,
místo urlpatternu.
export_seznamu_prednasek
Pavel 'LEdoian' Turinsky 4 years ago
parent
commit
159901e19d
  1. 64
      data/sitetree_new.json
  2. 4
      korektury/urls.py
  3. 4
      seminar/urls.py

64
data/sitetree_new.json

@ -65,8 +65,8 @@
"fields": {
"title": "Aktuální<br/> ročník",
"hint": "",
"url": "/zadani/aktualni/",
"urlaspattern": false,
"url": "seminar_aktualni_zadani",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -117,8 +117,8 @@
"fields": {
"title": "Archiv",
"hint": "",
"url": "/archiv/rocniky/",
"urlaspattern": false,
"url": "seminar_archiv_rocniky",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -143,8 +143,8 @@
"fields": {
"title": "Přihlásit",
"hint": "",
"url": "/login/",
"urlaspattern": false,
"url": "login",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -195,8 +195,8 @@
"fields": {
"title": "Organizátoři",
"hint": "",
"url": "/co-je-MaM/organizatori/",
"urlaspattern": false,
"url": "organizatori",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -377,8 +377,8 @@
"fields": {
"title": "Články",
"hint": "",
"url": "/clanky/resitel/",
"urlaspattern": false,
"url": "clanky_resitel",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -455,8 +455,8 @@
"fields": {
"title": "Proběhlo",
"hint": "",
"url": "/soustredeni/probehlo/",
"urlaspattern": false,
"url": "seminar_seznam_soustredeni",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -481,8 +481,8 @@
"fields": {
"title": "Profil",
"hint": "",
"url": "/profil/",
"urlaspattern": false,
"url": "profil",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -507,8 +507,8 @@
"fields": {
"title": "Osobní údaje",
"hint": "",
"url": "/profil/osobni-udaje",
"urlaspattern": false,
"url": "seminar_resitel_edit",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -533,8 +533,8 @@
"fields": {
"title": "Poslat řešení",
"hint": "",
"url": "/odeslat-reseni/",
"urlaspattern": false,
"url": "seminar_nahraj_reseni",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -559,8 +559,8 @@
"fields": {
"title": "Témata",
"hint": "",
"url": "/archiv/temata/",
"urlaspattern": false,
"url": "seminar_temata",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -611,8 +611,8 @@
"fields": {
"title": "Aktuální",
"hint": "",
"url": "/korektury/",
"urlaspattern": false,
"url": "korektury_list",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -637,8 +637,8 @@
"fields": {
"title": "Zastaralé",
"hint": "",
"url": "/korektury/zastarale/",
"urlaspattern": false,
"url": "korektury_stare_list",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -689,8 +689,8 @@
"fields": {
"title": "Aktuální číslo",
"hint": "",
"url": "/zadani/aktualni/",
"urlaspattern": false,
"url": "seminar_aktualni_zadani",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -715,8 +715,8 @@
"fields": {
"title": "Témata",
"hint": "",
"url": "/zadani/temata/",
"urlaspattern": false,
"url": "seminar_temata",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -741,8 +741,8 @@
"fields": {
"title": "Čísla",
"hint": "",
"url": "/archiv/rocniky/",
"urlaspattern": false,
"url": "seminar_archiv_rocniky",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,
@ -767,8 +767,8 @@
"fields": {
"title": "Úvod",
"hint": "",
"url": "/profil/",
"urlaspattern": false,
"url": "profil",
"urlaspattern": true,
"tree": 1,
"hidden": false,
"alias": null,

4
korektury/urls.py

@ -3,8 +3,8 @@ from seminar.utils import org_required
from . import views
urlpatterns = [
path('korektury/', org_required(views.KorekturyAktualniListView.as_view()), name='korektury-list'),
path('korektury/zastarale/', org_required(views.KorekturyZastaraleListView.as_view()), name='korektury-list'),
path('korektury/', org_required(views.KorekturyAktualniListView.as_view()), name='korektury_list'),
path('korektury/zastarale/', org_required(views.KorekturyZastaraleListView.as_view()), name='korektury_stare_list'),
path('korektury/<int:pdf>/', org_required(views.KorekturyView.as_view()), name='korektury'),
path('korektury/help/', org_required(views.KorekturyHelpView.as_view()), name='korektury-help'),
]

4
seminar/urls.py

@ -13,8 +13,8 @@ urlpatterns = [
path('co-je-MaM/organizatori/organizovali/', views.CojemamOrganizatoriStariView.as_view(), name='stari_organizatori'),
# Archiv
path('archiv/rocniky/', views.ArchivView.as_view()),
path('archiv/temata/', views.ArchivTemataView.as_view()),
path('archiv/rocniky/', views.ArchivView.as_view(), name="seninar_archiv_rocniky"),
path('archiv/temata/', views.ArchivTemataView.as_view(), name="seninar_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'),

Loading…
Cancel
Save