Skip to content

Commit

Permalink
Tohle asi něco rozbije (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vojtěch David committed Nov 18, 2024
1 parent d339217 commit b7ba297
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions app/Modules/Fof/DefaultModule/templates/Schedule/detail.latte
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@
<h2>{$group['name'][$lang]}</h2>

{var $itemsToSkip = [1]}
{var $competitionDetail = 661}

{foreach $group['items'] as $item}
{if !in_array($item['itemId'], $itemsToSkip)}
{if !in_array($item['itemId'], $itemsToSkip)}{if $item['itemId'] != $competitionDetail}
<div id="{$item['itemId']}" class="rules">
{if !($group['name'][$lang] == $item['name'][$lang])}
<div class="title">
Expand All @@ -119,7 +120,20 @@
{$item['longDescription'][$lang]??$item['description'][$lang]|noescape}
</div>
</div>
{/if}
{else}
<div id="{$item['itemId']}" class="rules">
{if !($group['name'][$lang] == $item['name'][$lang])}
<div class="title">
{$item['name'][$lang]}
</div>
{/if}
<div class="description">
<div class="timeline timeline-wider">
{include '../competition_schedule.latte'}
</div>
</div>
</div>
{/if}{/if}
{/foreach}
{php $key = $newKey}
{/foreach}
Expand Down

0 comments on commit b7ba297

Please sign in to comment.