Skip to content

Commit

Permalink
WIP Security page
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed Jul 26, 2023
1 parent f6d079c commit 77f1efd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
15 changes: 15 additions & 0 deletions site/app/Www/Presenters/SecurityPresenter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
declare(strict_types = 1);

namespace MichalSpacekCz\Www\Presenters;

class SecurityPresenter extends BasePresenter
{

public function renderDefault(): void
{
$this->template->pageTitle = $this->translator->translate('messages.title.who');
$this->template->pageHeader = $this->translator->translate('messages.header.who');
}

}
2 changes: 1 addition & 1 deletion site/app/Www/Presenters/templates/@layout.latte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{if $darkMode === null}
{styleSheet screen-main+humbleicons+'@media (prefers-color-scheme: dark) {'+screen-main-dark+'}'}
{elseif $darkMode}
{styleSheet screen-main+humbleicons+screen-main-dark}
{styleSheet screen-main+humbleicons+screen-main-dark+rating}
{else}
{styleSheet screen-main+humbleicons}
{/if}
Expand Down
7 changes: 7 additions & 0 deletions site/app/Www/Presenters/templates/Security/default.latte
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{define #menu}
&raquo; <a n:href="Homepage:">Michal Špaček</a>
{/define}

{define #content}
<div class="rating"><strong class="left rating-a">A<sup>+</sup></strong> ayyyy</div>
{/define}
4 changes: 4 additions & 0 deletions site/config/routes.neon
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,7 @@ parameters:
mask:
cs_CZ: pgp
en_US: pgp
Security:
mask:
cs_CZ: bezpecnost
en_US: security

0 comments on commit 77f1efd

Please sign in to comment.