Interface fix: improve visualisation of common descriptions (nl2br, css width)

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@45 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
mensonge 2008-02-19 14:19:49 +00:00
parent 6f312b54db
commit 93da909d9c
2 changed files with 4 additions and 3 deletions

View file

@ -261,6 +261,7 @@ p.commondescription {
color: #555; color: #555;
font-weight: bold; font-weight: bold;
border-left: 1px solid #CC8; border-left: 1px solid #CC8;
width: 70%;
} }
p.tags { p.tags {

View file

@ -17,11 +17,11 @@ if((isset($currenttag) && $GLOBALS['enableCommonTagDescription'])
<?php <?php
if(isset($currenttag) && $cdservice->getLastTagDescription($currenttag)) { if(isset($currenttag) && $cdservice->getLastTagDescription($currenttag)) {
$description = $cdservice->getLastTagDescription($currenttag); $description = $cdservice->getLastTagDescription($currenttag);
echo filter($description['cdDescription']); echo nl2br(filter($description['cdDescription']));
} elseif(isset($hash) && $cdservice->getLastBookmarkDescription($hash)) { } elseif(isset($hash) && $cdservice->getLastBookmarkDescription($hash)) {
$description = $cdservice->getLastBookmarkDescription($hash); $description = $cdservice->getLastBookmarkDescription($hash);
echo filter($description['cdTitle']). "<br/>"; echo nl2br(filter($description['cdTitle'])). "<br/>";
echo filter($description['cdDescription']). "<br/>"; echo nl2br(filter($description['cdDescription'])). "<br/>";
} }
if($logged_on_userid>0) { if($logged_on_userid>0) {