summaryrefslogtreecommitdiff
path: root/src/data/templates/vote.hbs
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2017-07-14 06:18:13 -0400
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2017-07-14 06:18:13 -0400
commit93cb735370c48c3102fdb10e744f7c95d6c0f7c9 (patch)
tree6b9fff4d4cc9e7593b090b864fa9afffa78e7abc /src/data/templates/vote.hbs
parentfe6d45474a2024fb362ee59f7a38f827283ac0c4 (diff)
add: Fancy voting.
Current vote is displayed in bold text. Let user change vote.
Diffstat (limited to 'src/data/templates/vote.hbs')
-rw-r--r--src/data/templates/vote.hbs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/data/templates/vote.hbs b/src/data/templates/vote.hbs
index 135fa2f..9aff608 100644
--- a/src/data/templates/vote.hbs
+++ b/src/data/templates/vote.hbs
@@ -1,3 +1,9 @@
-{{#with quote}}
-{{score}} (fra {{votes}})
-{{/with}}
+{{score}} (fra {{votes}}), Vote: <font size="-1">
+{{#each vote_options}}
+{{#if is_user_vote}}
+<b>{{value}}</b>
+{{else}}
+<a href="javascript:vote({{../id}},{{value}})">{{value}}</a>
+{{/if}}
+{{/each}}
+</font></span>