From 1077d6b24456603cd3d1c0c6d2ec5ca801d64191 Mon Sep 17 00:00:00 2001 From: cweiske Date: Thu, 5 Nov 2009 20:23:55 +0000 Subject: mark bookmarks with votes < threshold with red dotted border git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@526 b3834d28-1941-0410-a4f8-b48e95affb8f --- data/templates/bookmarks.tpl.php | 6 ++++++ www/scuttle.css | 3 +++ 2 files changed, 9 insertions(+) diff --git a/data/templates/bookmarks.tpl.php b/data/templates/bookmarks.tpl.php index d0b5dff..b349ab7 100644 --- a/data/templates/bookmarks.tpl.php +++ b/data/templates/bookmarks.tpl.php @@ -319,6 +319,12 @@ if($currenttag!= '') { $privateNoteField = ''; } + if ($GLOBALS['enableVoting'] && $GLOBALS['hideBelowVoting'] !== null + && $row['bVoting'] < $GLOBALS['hideBelowVoting'] + ) { + $access .= ' below-threshold'; + } + // Output echo '
  • '."\n"; include 'bookmarks-thumbnail.inc.tpl.php'; diff --git a/www/scuttle.css b/www/scuttle.css index 32fc980..5cb821e 100644 --- a/www/scuttle.css +++ b/www/scuttle.css @@ -239,6 +239,9 @@ li.xfolkentry.private { li.xfolkentry.shared { border-left: 3px solid #FA0; } +li.below-threshold > div { + border-right: 5px dotted #F00; +} li.xfolkentry div div.description span.anchorBookmark { /*font-family:monospace;*/ -- cgit v1.2.3