2022-04-08 18:01:26 +02:00
|
|
|
{{ $simplescore := $.Scratch.Get "simplescore" }}
|
|
|
|
{{ if isset $.Params "score" }}
|
|
|
|
<p>
|
|
|
|
{{ $score := $.Params.score }}
|
2022-04-08 21:23:23 +02:00
|
|
|
{{ if not $simplescore }}
|
2022-04-09 15:01:33 +02:00
|
|
|
<strong>Verdict</strong>: <span class="rating">{{ $score }}</span>/5
|
|
|
|
{{ else }}
|
|
|
|
<span class="rating" style="display: none;">{{ $score }}</span>
|
2022-04-08 18:01:26 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ range after 0 (seq $score)}}
|
|
|
|
<img src="/img/random/4.gif" class="score score-on" title="Score: {{ $score }}/5" />
|
|
|
|
{{ end }}
|
|
|
|
{{ range after 0 (seq (sub 5 $score))}}
|
|
|
|
<img src="/img/random/4.gif" class="score score-off" title="Score: {{ $score }}/5" />
|
|
|
|
{{ end }}
|
|
|
|
|
2022-04-08 21:23:23 +02:00
|
|
|
{{ if not $simplescore }}
|
2022-10-30 21:34:55 +01:00
|
|
|
{{ partial "scorelabel" . }}
|
2022-04-08 18:01:26 +02:00
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|