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}