2018-01-18 08:21:06 +01:00
|
|
|
$forall (Entity challengeId challenge) <- challenges
|
|
|
|
<div class="panel panel-success">
|
|
|
|
<div class="panel-heading"><a .challenge-link href="@{ShowChallengeR (challengeName challenge)}">#{challengeTitle challenge}</a>
|
2018-01-25 16:43:50 +01:00
|
|
|
$if challengeStarred challenge
|
2018-01-18 09:21:21 +01:00
|
|
|
\ <span class="glyphicon glyphicon-star-empty"></span>
|
2018-01-18 08:21:06 +01:00
|
|
|
$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}
|