Added a nice formatting of the issue comments.

newdiff
Loic d'Anterroches 2008-07-25 14:25:50 +02:00
parent 4eea3797b2
commit 2e711bee8d
2 changed files with 6 additions and 1 deletions

View File

@ -117,3 +117,8 @@ class IDF_IssueComment extends Pluf_Model
$q->create();
}
}
function IDF_IssueComment_Filter($text)
{
return wordwrap($text, 80, "\n", true);
}

View File

@ -13,7 +13,7 @@
<p>{blocktrans}Comment <a href="{$url}">{$i}</a> by {$who}, {$c.creation_dtime|date}{/blocktrans}</p>
{/if}
<p class="issue-comment-text">{if strlen($c.content) > 0}{$c.content|nl2br}{else}<i>{trans '(No comments were given for this change.)'}</i>{/if}</p>
<pre class="issue-comment-text">{if strlen($c.content) > 0}{$c.content|issuetext}{else}<i>{trans '(No comments were given for this change.)'}</i>{/if}</pre>
{if $i> 0 and $c.changedIssue()}
<div class="issue-changes">