Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2018-09-09 07:55:09 +0300
committerdartcafe <github@dartcafe.de>2018-09-09 07:55:09 +0300
commitd282765614a56499c9c16cfa98a44c4f0f880954 (patch)
tree3134b523231ffd110f0f5c0dce15a7f874dee74b /templates
parent9368aa8927a60a0151cbe067e7b575a22a71f932 (diff)
Scrolling vote table
Diffstat (limited to 'templates')
-rw-r--r--templates/goto.tmpl.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/goto.tmpl.php b/templates/goto.tmpl.php
index 05bfef1c..dcb3aa39 100644
--- a/templates/goto.tmpl.php
+++ b/templates/goto.tmpl.php
@@ -272,18 +272,20 @@
foreach ($options as $optionElement) {
// see if user already has data for this event
$class = 'no';
+ $dataUnvoted = '';
if (isset($userVoted)) {
foreach ($userVoted as $vote) {
if ($optionElement->getPollOptionText() === $vote->getVoteOptionText()) {
$class = $vote->getVoteAnswer();
break;
+ } else {
+ $class = 'unvoted';
}
- $class = 'unvoted';
}
}
if ($class === 'unvoted') {
- $dataUnvoted = $l->t('New option!');
+ $dataUnvoted = $l->t('New');
$updatedPoll = true;
}