gonito/templates/list-challenges-core.hamlet
2018-01-25 16:43:50 +01:00

10 lines
657 B
Plaintext

$forall (Entity challengeId 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(@{ChallengeImageR challengeId}); background-color:lightgrey; background-blend-mode:screen;background-size: 100%;">#{challengeDescription challenge}
$else
<div class="panel-body">#{challengeDescription challenge}