32 lines
825 B
HTML
32 lines
825 B
HTML
{{ $simplescore := $.Scratch.Get "simplescore" }}
|
|
{{ if isset $.Params "score" }}
|
|
<p>
|
|
{{ $score := $.Params.score }}
|
|
{{ if not $simplescore }}
|
|
<strong>Verdict</strong>: {{ $score }}/5
|
|
{{ 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 }}
|
|
|
|
{{ if not $simplescore }}
|
|
{{ if eq $score 5 }}
|
|
It was amazing!
|
|
{{ else if eq $score 4 }}
|
|
I really liked it!
|
|
{{ else if eq $score 3 }}
|
|
I liked it.
|
|
{{ else if eq $score 2 }}
|
|
It was OK.
|
|
{{ else if eq $score 1 }}
|
|
I did not like it.
|
|
{{ else }}
|
|
Horrible.
|
|
{{ end}}
|
|
{{ end }}
|
|
</p>
|
|
{{ end }}
|