aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2021-01-16 10:38:32 +0000
committerr <r@freesoftwareextremist.com>2021-01-16 10:38:32 +0000
commit17f02deff72cd79a61731923a5459fd289f811c6 (patch)
tree73f443fa167f73a8d54cd48f85aa8435c4c468f3
parent87e31dbd6688f8e4492d3dc17783c26f2d926e4b (diff)
downloadbloat-17f02deff72cd79a61731923a5459fd289f811c6.tar.gz
bloat-17f02deff72cd79a61731923a5459fd289f811c6.zip
Show emojis in poll options
-rw-r--r--templates/status.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl
index 6071b2f..e842a96 100644
--- a/templates/status.tmpl
+++ b/templates/status.tmpl
@@ -139,12 +139,12 @@
{{range $i, $o := .Poll.Options}}
<div class="poll-option">
{{if (or $s.Poll.Expired $s.Poll.Voted)}}
- <div> {{$o.Title}} - {{$o.VotesCount}} votes </div>
+ <div> {{EmojiFilter $o.Title $s.Emojis}} - {{$o.VotesCount}} votes </div>
{{else}}
<input type="{{if $s.Poll.Multiple}}checkbox{{else}}radio{{end}}" name="choices"
id="poll-{{$s.ID}}-{{$i}}" value="{{$i}}">
<label for="poll-{{$s.ID}}-{{$i}}">
- {{$o.Title}}
+ {{EmojiFilter $o.Title $s.Emojis}}
</label>
{{end}}
</div>