aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/templates/bookmarks-vote.inc.tpl.php8
-rw-r--r--www/scuttle.css8
2 files changed, 7 insertions, 9 deletions
diff --git a/data/templates/bookmarks-vote.inc.tpl.php b/data/templates/bookmarks-vote.inc.tpl.php
index f65cf37..41572d5 100644
--- a/data/templates/bookmarks-vote.inc.tpl.php
+++ b/data/templates/bookmarks-vote.inc.tpl.php
@@ -21,24 +21,24 @@ if (isset($row['hasVoted']) && !$row['hasVoted']) {
}
echo '<span class="' . $classes . '" id="bmv-' . $row['bId'] . '">';
-if (isset($row['hasVoted']) && !$row['hasVoted']) {
+if (isset($row['hasVoted']) && $row['vote'] != 1) {
echo '<a class="vote-for" rel="nofollow" href="'
. createVoteURL(true, $row['bId']) . '"'
. ' onclick="javascript:vote(' . $row['bId'] . ',1); return false;"'
. '>+</a>';
} else {
- echo '<span class="vote-for-inactive">+</span>';
+ echo '<span class="vote-for vote-for-inactive">+</span>';
}
echo '<span class="voting">' . $row['bVoting'] . '</span>';
-if (isset($row['hasVoted']) && !$row['hasVoted']) {
+if (isset($row['hasVoted']) && $row['vote'] != -1) {
echo '<a class="vote-against" rel="nofollow" href="'
. createVoteURL(false, $row['bId']) . '"'
. ' onclick="vote(' . $row['bId'] . ',-1); return false;"'
. '>-</a>';
} else {
- echo '<span class="vote-against-inactive">-</span>';
+ echo '<span class="vote-against vote-against-inactive">-</span>';
}
echo '</span>';
?> \ No newline at end of file
diff --git a/www/scuttle.css b/www/scuttle.css
index f28b46a..a01963e 100644
--- a/www/scuttle.css
+++ b/www/scuttle.css
@@ -282,14 +282,12 @@ li.xfolkentry div div.description span.anchorBookmark {
.vote-badge a.vote-against:hover {
background-color: #ffcccc;
}
-.vote-badge .vote-for-inactive, .vote-badge .vote-against-inactive {
- font-size: 3px;
+.vote-badge-for .vote-for-inactive {
color: transparent;
-}
-.vote-badge-for {
background-color: #ccffbb;
}
-.vote-badge-against {
+.vote-badge-against .vote-against-inactive {
+ color: transparent;
background-color: #ffcccc;
}