Added a nice formatting of the issue comments.
This commit is contained in:
parent
4eea3797b2
commit
2e711bee8d
@ -116,4 +116,9 @@ class IDF_IssueComment extends Pluf_Model
|
||||
$q->lock = 0;
|
||||
$q->create();
|
||||
}
|
||||
}
|
||||
|
||||
function IDF_IssueComment_Filter($text)
|
||||
{
|
||||
return wordwrap($text, 80, "\n", true);
|
||||
}
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user