gonito/templates/list-challenges-core.hamlet
2021-05-28 07:17:45 +02:00

10 lines
659 B
Plaintext

$forall (Entity _ challenge) <- challenges
<div class="panel panel-success">
<div class="panel-heading"><a .challenge-link href="@{ShowChallengeR (challengeName challenge)}">#{challengeTitle challenge}</a>
$if challengeStarred challenge
\ <span class="glyphicon glyphicon-star-empty"></span>
$if isJust (challengeImage challenge)
<div class="panel-body" style="background-image:url(@{ChallengeImgR $ challengeName challenge}); background-color:lightgrey; background-blend-mode:screen;background-size: 100%;">#{challengeDescription challenge}
$else
<div class="panel-body">#{challengeDescription challenge}