]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
show own voting as background color
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 28 Oct 2009 22:19:50 +0000 (22:19 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 28 Oct 2009 22:19:50 +0000 (22:19 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@452 b3834d28-1941-0410-a4f8-b48e95affb8f

data/templates/bookmarks-vote.inc.tpl.php
www/scuttle.css

index d59feb44265285877ecd64fde5030f22dd1bcba3..e80c894f6e9c9c17de29e1cf9e113fe7e949a0b5 100644 (file)
@@ -10,6 +10,12 @@ if (!$GLOBALS['enableVoting']) {
 }
 if (isset($row['hasVoted']) && !$row['hasVoted']) {
     $classes = 'vote-badge vote-badge-inactive';
+} else if (isset($row['vote']))  {
+    $classes = 'vote-badge '
+        . ($row['vote'] == 1
+           ? 'vote-badge-for'
+           : 'vote-badge-against'
+        );
 } else {
     $classes = 'vote-badge';
 }
index d224dcf4379679ad95440d1e4eb552a071fdde5a..e8051bcc78d96f1690f751149d051d9837a400ce 100644 (file)
@@ -280,11 +280,17 @@ a.vote-for:hover {
     background-color: #ccffbb;
 }
 a.vote-against:hover {
-    background-color: #ffbbbb;
+    background-color: #ffcccc;
 }
 .vote-badge .vote-for-inactive, .vote-badge .vote-against-inactive {
     font-size: 3px;
-    color: white;
+    color: transparent;
+}
+.vote-badge-for {
+    background-color: #ccffbb;
+}
+.vote-badge-against {
+    background-color: #ffcccc;
 }
 
 /* SIDEBAR */