From 65b1963d160e0a2fad8a099abf69b799e42f7915 Mon Sep 17 00:00:00 2001 From: cweiske Date: Mon, 2 Nov 2009 09:39:07 +0000 Subject: [PATCH] enable vote changes on voting badge git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@500 b3834d28-1941-0410-a4f8-b48e95affb8f --- data/templates/bookmarks-vote.inc.tpl.php | 8 ++++---- www/scuttle.css | 8 +++----- 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 ''; -if (isset($row['hasVoted']) && !$row['hasVoted']) { +if (isset($row['hasVoted']) && $row['vote'] != 1) { echo '+'; } else { - echo '+'; + echo '+'; } echo '' . $row['bVoting'] . ''; -if (isset($row['hasVoted']) && !$row['hasVoted']) { +if (isset($row['hasVoted']) && $row['vote'] != -1) { echo '-'; } else { - echo '-'; + echo '-'; } echo ''; ?> \ 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; }