From f177dcb7b98300634fdef408150a83e9f476d66d Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Wed, 12 Jul 2017 06:35:41 -0400 Subject: add: Voting function --- src/data/templates/quotes.hbs | 15 +++++++++++++-- src/data/templates/vote.hbs | 3 +++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/data/templates/vote.hbs (limited to 'src/data') diff --git a/src/data/templates/quotes.hbs b/src/data/templates/quotes.hbs index 0e38d22..45fa711 100644 --- a/src/data/templates/quotes.hbs +++ b/src/data/templates/quotes.hbs @@ -31,6 +31,18 @@ -moz-user-select: text; } + @@ -59,8 +71,7 @@ Dato: {{date}}, Score: 2 3 4 - 5 - , + 5,



diff --git a/src/data/templates/vote.hbs b/src/data/templates/vote.hbs new file mode 100644 index 0000000..135fa2f --- /dev/null +++ b/src/data/templates/vote.hbs @@ -0,0 +1,3 @@ +{{#with quote}} +{{score}} (fra {{votes}}) +{{/with}} -- cgit v1.2.3