From c0aea526864ab4e0d659917425d17e108eeff502 Mon Sep 17 00:00:00 2001 From: mensonge Date: Mon, 9 Feb 2009 12:54:31 +0000 Subject: Interface fix: improve metadata display under bookmarks. git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@260 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/bookmarks.tpl.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'templates/bookmarks.tpl.php') diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index ff91cce..4040133 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -146,7 +146,7 @@ if($currenttag!= '') { } $cats = substr($cats, 0, -2); if ($cats != '') { - $cats = ' '.T_('in').' '. $cats; + $cats = ' '.T_('Tags:').' '. $cats; } // Edit and delete links @@ -154,11 +154,16 @@ if($currenttag!= '') { if ($bookmarkservice->editAllowed($row['bId'])) { $edit = ' - '. T_('Edit') .''; } + + // Last update + $update = ' ('. T_('update') .' '. date($GLOBALS['shortdate'], strtotime($row['bModified'])). ') '; // User attribution $copy = ''; if ($user == '' || isset($watched)) { - $copy = ' '. T_('by') .' '. $row['username'] .''; + $copy = ' '. T_('by') .' '. $row['username'] .''; + } else { + $copy = ' '. T_('by') . ' ' . T_('you'); } // Udders! @@ -223,7 +228,7 @@ if($currenttag!= '') { // Improve description display (anchors, links, ...) $bkDescription = preg_replace('|\[\/.*?\]|', '', filter($row['bDescription'])); // remove final anchor $bkDescription = preg_replace('|\[(.*?)\]|', ' $1 ', $bkDescription); // highlight starting anchor - $bkDescription = preg_replace('@((http|https|ftp)://.*?)( |\r|$)@', '$1$3', $bkDescription); // make url clickable + $bkDescription = preg_replace('@((http|https|ftp)://.*?)( |\r|$)@', '$1$3', $bkDescription); // make url clickable } echo '
'. nl2br($bkDescription) ."
\n"; @@ -231,7 +236,7 @@ if($currenttag!= '') { echo '
'.shortenString($address).'
'; //} - echo '
'. date($GLOBALS['shortdate'], strtotime($row['bModified'])) . $cats . $copy . $edit ."
\n"; + echo '
'. $cats . $copy . $edit . $update ."
\n"; echo ''; -- cgit v1.2.3