Skip to content

Commit

Permalink
ui: better reports (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
miiila authored Nov 13, 2024
1 parent fb24908 commit 68462ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions App/Presenters/templates/Pages/gameReports.latte
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
</ul>

<h2 id="reportaze">Odkazy na reportáže</h2>
<ul>
{foreach $teamsWithReviews as $team}
{continueIf $team->getReview() === null}
{var $review = $team->getReview()}
{continueIf $review->getLink() === null || !\Nette\Utils\Validators::isUrl($review->getLink())}
<p>{$team->getName()}: <a href="{$review->getLink()}">{$review->getLink()}</a></p>
<li><a href="{$review->getLink()}">{$team->getName()}</a></li>
{/foreach}

</ul>
<h2 id="libilo">Co se líbilo</h2>
{foreach $teamsWithReviews as $team}
{continueIf $team->getReview() === null}
Expand Down

0 comments on commit 68462ae

Please sign in to comment.