aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-02 09:39:07 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-02 09:39:07 +0000
commit65b1963d160e0a2fad8a099abf69b799e42f7915 (patch)
tree7385b3cf2494cbde6230dca475ec13e6d1e0d98a
parentc2c4f0aaa822c2ea3adfe027a9eaaf177a574525 (diff)
downloadsemanticscuttle-65b1963d160e0a2fad8a099abf69b799e42f7915.tar.gz
semanticscuttle-65b1963d160e0a2fad8a099abf69b799e42f7915.tar.bz2
enable vote changes on voting badge
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@500 b3834d28-1941-0410-a4f8-b48e95affb8f
-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;
}