From a53d9211b30c46eeb3075dce5c01c85c76e8d214 Mon Sep 17 00:00:00 2001 From: Kowalski Date: Mon, 12 Oct 2026 16:30:24 +0200 Subject: [PATCH] cache-busting parametr --- app/Core/Konstanty.php | 15 +++++++++++++++ app/Presentation/@layout.latte | 12 ++++++------ app/Presentation/BasePresenter.php | 7 ++++++- .../Error/Error4xx/Error4xxPresenter.php | 6 ++++++ app/Presentation/Home/HomePresenter.php | 2 ++ app/Presentation/Mapa/MapaPresenter.php | 2 ++ app/Presentation/Mapa/default.latte | 2 +- app/Presentation/Nastaveni/NastaveniPresenter.php | 2 ++ app/Presentation/Obvod/ObvodPresenter.php | 1 + app/Presentation/Obvod/view.latte | 4 ++-- app/Presentation/Sign/SignPresenter.php | 5 +++++ app/Presentation/Stari/default.latte | 2 +- 12 files changed, 49 insertions(+), 11 deletions(-) create mode 100644 app/Core/Konstanty.php diff --git a/app/Core/Konstanty.php b/app/Core/Konstanty.php new file mode 100644 index 0000000..8dbe568 --- /dev/null +++ b/app/Core/Konstanty.php @@ -0,0 +1,15 @@ + {* bootstrap: *} - - + + {* LeafLet: *} - + {* Locate-Control *} - - + + {* jquery *} - + {/block} diff --git a/app/Presentation/Nastaveni/NastaveniPresenter.php b/app/Presentation/Nastaveni/NastaveniPresenter.php index 093cd53..f470e71 100644 --- a/app/Presentation/Nastaveni/NastaveniPresenter.php +++ b/app/Presentation/Nastaveni/NastaveniPresenter.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace App\Presentation\Nastaveni; +use App\Core\Konstanty; use App\Core\MapovyPodklad; use Nette\Application\UI\Form; use Nette\Application\UI\Presenter; @@ -14,6 +15,7 @@ final class NastaveniPresenter extends Presenter { public function beforeRender(): void { + $this->template->appVersion = Konstanty::verze; if (!$this->getUser()->isLoggedIn()) { $this->template->navrat = $this->storeRequest(); } diff --git a/app/Presentation/Obvod/ObvodPresenter.php b/app/Presentation/Obvod/ObvodPresenter.php index e09c79c..88125c9 100644 --- a/app/Presentation/Obvod/ObvodPresenter.php +++ b/app/Presentation/Obvod/ObvodPresenter.php @@ -40,6 +40,7 @@ final class ObvodPresenter extends BasePresenter public function beforeRender(): void { + parent::beforeRender(); } public function actionList(?string $skupina = null, ?string $razeni = null): void diff --git a/app/Presentation/Obvod/view.latte b/app/Presentation/Obvod/view.latte index f43a7d1..0c66951 100644 --- a/app/Presentation/Obvod/view.latte +++ b/app/Presentation/Obvod/view.latte @@ -161,8 +161,8 @@ - - + + - + {/block}