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
This commit is contained in:
mensonge 2009-02-17 10:06:19 +00:00
parent 760dd70519
commit 2fb1f13f93
2 changed files with 14 additions and 2 deletions

View file

@ -217,6 +217,11 @@ div.meta {
div.meta span { div.meta span {
color: #F00; color: #F00;
} }
div.privateNote {
font-variant: small-caps;
font-size: small;
text-align: right;
}
li.xfolkentry { li.xfolkentry {
border-bottom: 1px solid #DDD; border-bottom: 1px solid #DDD;
margin-bottom: 0; margin-bottom: 0;

View file

@ -208,7 +208,14 @@ if($currenttag!= '') {
$adminBgClass = ''; $adminBgClass = '';
$adminStar = ''; $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 // Output
echo '<li class="xfolkentry'. $access .'" >'."\n"; echo '<li class="xfolkentry'. $access .'" >'."\n";
if ($GLOBALS['enableWebsiteThumbnails']) { if ($GLOBALS['enableWebsiteThumbnails']) {
@ -235,7 +242,7 @@ if($currenttag!= '') {
//} //}
echo '<div class="meta">'. $cats . $copy . $edit . $update ."</div>\n"; 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 '</div>';
echo "</li>\n"; echo "</li>\n";