Added link to issues and commit in the source tree.
This commit is contained in:
parent
809967f5d7
commit
8e093bc7ee
@ -32,12 +32,12 @@ class IDF_Template_IssueComment extends Pluf_Template_Tag
|
||||
private $request = null;
|
||||
private $scm = null;
|
||||
|
||||
function start($text, $request, $echo=true)
|
||||
function start($text, $request, $echo=true, $wordwrap=true)
|
||||
{
|
||||
$this->project = $request->project;
|
||||
$this->request = $request;
|
||||
$this->scm = IDF_Scm::get($request);
|
||||
$text = wordwrap($text, 69, "\n", true);
|
||||
if ($wordwrap) $text = wordwrap($text, 69, "\n", true);
|
||||
$text = Pluf_esc($text);
|
||||
$text = ereg_replace('[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]',
|
||||
'<a href="\\0" rel="nofollow">\\0</a>',
|
||||
|
@ -35,7 +35,7 @@
|
||||
{if $file.type == 'blob'}
|
||||
{if isset($file.date)}
|
||||
<td><span class="smaller">{$file.date|dateago:"wihtout"}</span></td>
|
||||
<td><span class="smaller">{$file.author|strip_tags|trim}{trans ':'} {$file.log}</span></td>
|
||||
<td><span class="smaller">{$file.author|strip_tags|trim}{trans ':'} {issuetext $file.log, $request, true, false}</span></td>
|
||||
{else}<td colspan="2"></td>{/if}
|
||||
<td>{$file.size|size}</td>{/if}
|
||||
</tr>
|
||||
|
@ -47,7 +47,7 @@
|
||||
<td><a href="{$url}">{$file.file}</a></td>
|
||||
<td><span class="smaller">{$file.date|dateago:"wihtout"}</span></td>
|
||||
<td>{$file.rev}</td>
|
||||
<td{if $file.type != 'blob'} colspan="2"{/if}><span class="smaller">{$file.author|strip_tags|trim}{trans ':'} {$file.log|nl2br}</span></td>
|
||||
<td{if $file.type != 'blob'} colspan="2"{/if}><span class="smaller">{$file.author|strip_tags|trim}{trans ':'} {issuetext $file.log, $request, true, false}</span></td>
|
||||
{if $file.type == 'blob'}
|
||||
<td>{$file.size|size}</td>
|
||||
{/if}
|
||||
|
Loading…
Reference in New Issue
Block a user