summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar mensonge2009-02-17 10:06:19 +0000
committerGravatar mensonge2009-02-17 10:06:19 +0000
commit2fb1f13f9335c01996b3e3e9ac6d5f60e5d3b211 (patch)
tree75fa0297039ad4b48909b006786dbc2b3da6481a
parent760dd70519ade43df447196bc29063fe118908b4 (diff)
downloadscuttle-2fb1f13f9335c01996b3e3e9ac6d5f60e5d3b211.tar.gz
scuttle-2fb1f13f9335c01996b3e3e9ac6d5f60e5d3b211.zip
Interface fix: makes visible private notes on bookmarks pages.
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@285 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--scuttle.css5
-rw-r--r--templates/bookmarks.tpl.php11
2 files changed, 14 insertions, 2 deletions
diff --git a/scuttle.css b/scuttle.css
index 1374066..c855a94 100644
--- a/scuttle.css
+++ b/scuttle.css
@@ -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;
diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php
index 777e7ca..bb09c4e 100644
--- a/templates/bookmarks.tpl.php
+++ b/templates/bookmarks.tpl.php
@@ -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";