diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-28 22:19:50 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-28 22:19:50 +0000 |
commit | 7e0f6a31321a93cd65b5ce9186400244464526ce (patch) | |
tree | 6f67a5dfaf8c96f889a179c8b677b0b8b5bdfe7b /data | |
parent | ee21c9e47aa5d9ed6079c4e2ca89808a9f9eb93a (diff) | |
download | semanticscuttle-7e0f6a31321a93cd65b5ce9186400244464526ce.tar.gz semanticscuttle-7e0f6a31321a93cd65b5ce9186400244464526ce.tar.bz2 |
show own voting as background color
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@452 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/bookmarks-vote.inc.tpl.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/bookmarks-vote.inc.tpl.php b/data/templates/bookmarks-vote.inc.tpl.php index d59feb4..e80c894 100644 --- a/data/templates/bookmarks-vote.inc.tpl.php +++ b/data/templates/bookmarks-vote.inc.tpl.php @@ -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'; } |