refactor/split css, templates

This commit is contained in:
f0x 2024-11-05 15:53:22 +01:00
commit 70342681c1
54 changed files with 1371 additions and 1600 deletions

View file

@ -23,11 +23,11 @@
*/ -}}
{{- define "votes" -}}
{{- if eq . 1 -}}
{{- . -}} vote
{{- else -}}
{{- . }} votes
{{- end -}}
{{- if eq . 1 -}}
{{- . -}} vote
{{- else -}}
{{- . }} votes
{{- end -}}
{{- end -}}
{{- with . }}
@ -51,14 +51,14 @@
<span class="total-votes">
{{- template "votes" .Poll.VotesCount -}}&nbsp;
{{- if .Poll.Expired -}}
total
total
{{- else -}}
so far
so far
{{- end -}}
</span>
</figcaption>
<ul class="poll-options nodot">
{{- range $index, $pollOption := .PollOptions }}
{{- range $index, $pollOption := .PollOptions }}
<li class="poll-option">
<span class="sr-only">Option {{ increment $index }},</span>
<span lang="{{- .LanguageTag.TagStr -}}">{{ emojify .Emojis (noescape $pollOption.Title) }}</span>
@ -75,7 +75,7 @@
{{- end }}
</div>
</li>
{{- end }}
{{- end }}
</ul>
</figure>
{{- end }}