Skip to content

Commit

Permalink
fix dsef
Browse files Browse the repository at this point in the history
  • Loading branch information
Headary committed Jul 5, 2024
1 parent f8fd533 commit 5db47fd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
</div>
{/if}
{* Hack for missing photos *}
{if $eventKey['fykos-year'] == 34}
{if $eventKey['year'] == 34}
<div class="mt-5">
Tento ročník proběhl kvůli pandemii COVID-19 online.
Tento ročník proběhl kvůli pandemii COVID-19 online.
</div>
{/if}
</section>
Expand Down
25 changes: 16 additions & 9 deletions app/RouterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ public static function createDsefRouter(?array $domainList, array $routerMapping
{
$router = new RouteList();

$router->withModule('Default')
->addRoute('//<domain>/<presenter>[/<action>]', [
'presenter' => 'Default',
'action' => 'default',
null => self::useTranslateFilter($domainList, $routerMapping['default']),
]);

$router->withModule('Archive')
->addRoute('//<domain>/<eventYear ([0-9]{4})(-.*)?>/<eventMonth>/[<presenter>/[<action>]]', [
'presenter' => 'Default',
Expand Down Expand Up @@ -194,18 +201,18 @@ public static function createFykosRouter(?array $domainList, array $routerMappin
]);

$router->withModule('Default')
->addRoute('//<domain>/problems/<year ([0-9]{2})(-.*)?>/<series ([0-9]{1})(-.*)?>', [
'presenter' => 'Problems',
'action' => 'default',
null => self::useTranslateFilter($domainList, $routerMapping['default']),
]);

$router->addRoute('//<domain>/<module events>/[<presenter>[/<action>]]', [
'presenter' => 'Default',
->addRoute('//<domain>/problems/<year ([0-9]{2})(-.*)?>/<series ([0-9]{1})(-.*)?>', [
'presenter' => 'Problems',
'action' => 'default',
null => self::useTranslateFilter($domainList, $routerMapping['events']),
null => self::useTranslateFilter($domainList, $routerMapping['default']),
]);

$router->addRoute('//<domain>/<module events>/[<presenter>[/<action>]]', [
'presenter' => 'Default',
'action' => 'default',
null => self::useTranslateFilter($domainList, $routerMapping['events']),
]);

$router->withModule('Default')
->addRoute('//<domain>/<presenter>[/<action>]', [
'presenter' => 'Default',
Expand Down

0 comments on commit 5db47fd

Please sign in to comment.