summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-09 12:54:31 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-09 12:54:31 +0000
commitc0aea526864ab4e0d659917425d17e108eeff502 (patch)
tree691a7d8a55916c70ac8a6ac72b1198f5e1f06d85
parent31759556fb556c5a3c53914b28b6e8ef7b6c5231 (diff)
downloadsemanticscuttle-c0aea526864ab4e0d659917425d17e108eeff502.tar.gz
semanticscuttle-c0aea526864ab4e0d659917425d17e108eeff502.tar.bz2
Interface fix: improve metadata display under bookmarks.
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@260 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--templates/bookmarks.tpl.php13
1 files changed, 9 insertions, 4 deletions
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 = ' - <a href="'. createURL('edit', $row['bId']) .'">'. T_('Edit') .'</a><script type="text/javascript">document.write(" - <a href=\"#\" onclick=\"deleteBookmark(this, '. $row['bId'] .'); return false;\">'. T_('Delete') .'<\/a>");</script>';
}
+
+ // Last update
+ $update = ' <small>('. T_('update') .' '. date($GLOBALS['shortdate'], strtotime($row['bModified'])). ') </small>';
// User attribution
$copy = '';
if ($user == '' || isset($watched)) {
- $copy = ' '. T_('by') .' <a href="'. createURL('bookmarks', $row['username']) .'">'. $row['username'] .'</a>';
+ $copy = ' '. T_('by') .' <a href="'. createURL('bookmarks', $row['username']) .'">'. $row['username'] .'</a>';
+ } 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('|\[(.*?)\]|', ' <b>$1 </b>', $bkDescription); // highlight starting anchor
- $bkDescription = preg_replace('@((http|https|ftp)://.*?)( |\r|$)@', '<a href="$1">$1</a>$3', $bkDescription); // make url clickable
+ $bkDescription = preg_replace('@((http|https|ftp)://.*?)( |\r|$)@', '<a href="$1" rel="nofollow">$1</a>$3', $bkDescription); // make url clickable
}
echo '<div class="description">'. nl2br($bkDescription) ."</div>\n";
@@ -231,7 +236,7 @@ if($currenttag!= '') {
echo '<div class="address">'.shortenString($address).'</div>';
//}
- echo '<div class="meta">'. date($GLOBALS['shortdate'], strtotime($row['bModified'])) . $cats . $copy . $edit ."</div>\n";
+ echo '<div class="meta">'. $cats . $copy . $edit . $update ."</div>\n";
echo '</div>';