git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@452
b3834d28-1941-0410-a4f8-
b48e95affb8f
}
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';
}
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 */