2008-11-18 08:15:02 +00:00
|
|
|
{extends "idf/source/base.html"}
|
2008-11-15 20:10:37 +00:00
|
|
|
{block extraheader}<link rel="stylesheet" type="text/css" href="{media '/idf/css/prettify.css'}" />{/block}
|
2008-07-28 20:09:17 +00:00
|
|
|
{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>
|
2009-02-25 13:36:08 +00:00
|
|
|
<th><strong>{trans 'Author:'}</strong></th><td>{showuser $rcommit.get_author(), $request, $cobject.author}</td>
|
2008-07-28 20:09:17 +00:00
|
|
|
</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>
|
2009-02-16 17:12:21 +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, true, false, true, true, true}{/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'])}
|
2008-11-13 13:19:18 +00:00
|
|
|
<a href="{url 'IDF_Views_Source::tree', array($project.shortname, $commit, $filename)}">{$filename}</a> (<a href="#diff-{$filename|md5}">{blocktrans $ndiff}{$ndiff} diff{plural}{$ndiff} diffs{/blocktrans}</a>)<br />
|
2008-07-31 22:38:29 +00:00
|
|
|
{/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
|
|
|
|
2008-11-11 21:32:01 +00:00
|
|
|
{$diff.as_html()}
|
2009-01-17 17:46:26 +00:00
|
|
|
{/if}{if count($diff.files) or $large_commit}
|
2008-11-25 19:11:09 +00:00
|
|
|
{aurl 'url', 'IDF_Views_Source::downloadDiff', array($project.shortname, $commit)}
|
2008-11-25 19:36:09 +00:00
|
|
|
<p class="right soft"><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/package-grey.png'}" alt="{trans 'Archive'}" align="bottom" /></a> <a href="{$url}">{trans 'Download the corresponding diff file'}</a></p>
|
2008-08-02 07:38:06 +00:00
|
|
|
{/if}
|
2009-01-17 17:46:26 +00:00
|
|
|
|
2008-07-28 20:09:17 +00:00
|
|
|
{/block}
|
|
|
|
{block context}
|
2009-05-26 19:59:02 +00:00
|
|
|
{if $scm != 'svn'}
|
2008-07-28 20:09:17 +00:00
|
|
|
<p><strong>{trans 'Branches:'}</strong><br />
|
2009-05-26 19:59:02 +00:00
|
|
|
{foreach $branches as $branch => $path}
|
|
|
|
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
|
|
|
|
<span class="label{if in_array($branch, $tree_in)} active{/if}"><a href="{$url}" class="label">{$branch}</a></span><br />
|
2008-07-28 20:09:17 +00:00
|
|
|
{/foreach}
|
|
|
|
</p>
|
2009-05-26 19:59:02 +00:00
|
|
|
{else}
|
|
|
|
<form class="star" action="{url 'IDF_Views_Source_Svn::changelogRev', array($project.shortname)}" method="get">
|
|
|
|
<p><strong>{trans 'Revision:'}</strong> {$commit}</p>
|
|
|
|
<p>
|
|
|
|
<input accesskey="4" type="text" value="{$commit}" name="rev" size="5" />
|
|
|
|
<input type="submit" name="s" value="{trans 'Go to revision'}" />
|
|
|
|
</p>
|
|
|
|
</form>
|
2008-08-29 17:50:10 +00:00
|
|
|
{/if}
|
2008-07-28 20:09:17 +00:00
|
|
|
{/block}
|
|
|
|
|
2008-11-15 20:10:37 +00:00
|
|
|
{block javascript}
|
|
|
|
<script type="text/javascript" src="{media '/idf/js/prettify.js'}"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
prettyPrint();
|
|
|
|
</script>
|
|
|
|
{/block}
|