From a358f3a9a10cf4c060f28ff43094a73b0cadf46b Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 14 Mar 2008 16:21:58 +0000 Subject: Interface design: copy description and tags (when creating a bookmark from another one) git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@86 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/bookmarks.tpl.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'templates/bookmarks.tpl.php') diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index 84a67fe..d48aa1b 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -96,11 +96,13 @@ window.onload = playerLoad; } $cats = ''; + $tagsForCopy = ''; $tags = $row['tags']; foreach(array_keys($tags) as $key) { $tag =& $tags[$key]; $cats .= ', '; + $tagsForCopy.= $tag.','; } $cats = substr($cats, 0, -2); if ($cats != '') { @@ -136,11 +138,11 @@ window.onload = playerLoad; } // Copy link - if ($userservice->isLoggedOn() && ($logged_on_userid != $row['uId'])) { + if ($userservice->isLoggedOn() && ($logged_on_userid != $row['uId']) && !$bookmarkservice->bookmarkExists($row['bAddress'], $logged_on_userid)) { // Get the username of the current user $currentUser = $userservice->getCurrentUser(); $currentUsername = $currentUser[$userservice->getFieldName('username')]; - $copy .= ' - '. T_('Copy') .''; + $copy .= ' - '. T_('Copy') .''; } // Nofollow option -- cgit v1.2.3