2008-07-28 20:09:17 +00:00
|
|
|
{extends "source/base.html"}
|
|
|
|
{block docclass}yui-t1{assign $inCommit=true}{/block}
|
|
|
|
{block body}
|
|
|
|
<table class="commit" summary="">
|
|
|
|
<tr>
|
|
|
|
<th><strong>{trans 'Date:'}</strong></th><td>{$cobject.date|date:"%Y-%m-%d %H:%M:%S"} ({$cobject.date|dateago})</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th><strong>{trans 'Author:'}</strong></th><td>{$cobject.author|strip_tags}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-07-29 13:13:40 +00:00
|
|
|
<th><strong>{trans 'Commit:'}</strong></th><td class="mono"><a href="{url 'IDF_Views_Source::treeBase', array($project.shortname, $commit)}" title="{trans 'View corresponding source tree'}">{$cobject.commit}</a></td>
|
2008-07-28 20:09:17 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-07-29 13:13:40 +00:00
|
|
|
<th><strong>{trans 'Tree:'}</strong></th><td class="mono"><a href="{url 'IDF_Views_Source::treeBase', array($project.shortname, $commit)}" title="{trans 'View corresponding source tree'}">{$cobject.tree}</a><br /><br /></td>
|
2008-07-28 20:09:17 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-08-07 13:35:03 +00:00
|
|
|
<th><strong>{trans 'Message:'}</strong></th><td>{issuetext $cobject.title, $request}{if isset($cobject.full_message)}<br /><br />{issuetext $cobject.full_message, $request}{/if}</td>
|
2008-07-28 20:09:17 +00:00
|
|
|
</tr>
|
2008-08-02 07:38:06 +00:00
|
|
|
{if count($diff.files)}
|
2008-07-31 22:38:29 +00:00
|
|
|
<tr>
|
|
|
|
<th><strong>{trans 'Files:'}</strong></th>
|
|
|
|
<td>
|
|
|
|
{foreach $diff.files as $filename=>$diffdef}
|
|
|
|
{assign $ndiff = count($diffdef['chunks'])}
|
|
|
|
<a href="#diff-{$filename|md5}">{$filename}</a> (<a href="#diff-{$filename|md5}">{blocktrans $ndiff}{$ndiff} diff{plural}{$ndiff} diffs{/blocktrans}</a>)<br />
|
|
|
|
{/foreach}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2008-08-02 07:38:06 +00:00
|
|
|
{/if}
|
2008-07-28 20:09:17 +00:00
|
|
|
</table>
|
2008-08-02 07:38:06 +00:00
|
|
|
{if count($diff.files)}
|
2008-07-28 20:09:17 +00:00
|
|
|
<h2>{trans 'Change Details'}</h2>
|
2008-07-31 22:38:29 +00:00
|
|
|
|
|
|
|
{$diff.as_html()|safe}
|
2008-08-02 07:38:06 +00:00
|
|
|
{/if}
|
2008-07-28 20:09:17 +00:00
|
|
|
{/block}
|
|
|
|
{block context}
|
2008-08-29 17:50:10 +00:00
|
|
|
{if $scm == 'git'}
|
2008-07-28 20:09:17 +00:00
|
|
|
<p><strong>{trans 'Branches:'}</strong><br />
|
|
|
|
{foreach $branches as $branch}
|
2008-07-29 13:13:40 +00:00
|
|
|
{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $branch)}
|
2008-07-28 20:09:17 +00:00
|
|
|
<span class="label{if $commit == $branch} active{/if}"><a href="{$url}" class="label">{$branch}</a></span><br />
|
|
|
|
{/foreach}
|
|
|
|
</p>
|
2008-08-29 17:50:10 +00:00
|
|
|
{/if}
|
2008-07-28 20:09:17 +00:00
|
|
|
{/block}
|
|
|
|
|