]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Interface fix: makes visible private notes on bookmarks pages.
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 17 Feb 2009 10:06:19 +0000 (10:06 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 17 Feb 2009 10:06:19 +0000 (10:06 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@285 b3834d28-1941-0410-a4f8-b48e95affb8f

scuttle.css
templates/bookmarks.tpl.php

index 137406601c4e9a730063692106abaeb074db0c3c..c855a94f0499846445871be70b18d4fef53e1716 100644 (file)
@@ -217,6 +217,11 @@ div.meta {
 div.meta span {
     color: #F00;
 }
+div.privateNote {
+    font-variant: small-caps;
+    font-size: small;
+    text-align: right;
+}
 li.xfolkentry {
     border-bottom: 1px solid #DDD;
     margin-bottom: 0;
index 777e7ca414e3dbcca307659c4fd150fd4834e901..bb09c4eb9a01a780cc1ac74cdcc23d5d22889a19 100644 (file)
@@ -208,7 +208,14 @@ if($currenttag!= '') {
                        $adminBgClass = '';
                        $adminStar = '';
                }
-
+               
+               // Private Note (just visible by the owner and his/her contacts)
+               if($userservice->isLoggedOn() && ($currentUser->getId() == $row['uId'] || in_array($row['username'], $userservice->getWatchNames($currentUser->getId(), true)))) {
+                       $privateNoteField = $row['bPrivateNote'];
+               } else {
+                       $privateNoteField = '';
+               }
+               
                // Output
                echo '<li class="xfolkentry'. $access .'" >'."\n";
                if ($GLOBALS['enableWebsiteThumbnails']) {
@@ -235,7 +242,7 @@ if($currenttag!= '') {
                //}
 
                echo '<div class="meta">'.  $cats . $copy . $edit . $update ."</div>\n";
-
+               echo $privateNoteField!=''?'<div class="privateNote" title="'. T_('Private Note on this bookmark') .'">'.$privateNoteField."</div>\n":'';
                echo '</div>';
 
                echo "</li>\n";