Root/
| Source at commit 7383e18dff19e7e6a1e56d55cdfbfa109e91bfb3 created 1 year 7 months ago. By Loic d'Anterroches, Fixed issue 4, with fine control over the tabs access. | |
|---|---|
| 1 | {extends "source/base.html"} |
| 2 | {block docclass}yui-t1{assign $inCommit=true}{/block} |
| 3 | {block body} |
| 4 | <table class="commit" summary=""> |
| 5 | <tr> |
| 6 | <th><strong>{trans 'Date:'}</strong></th><td>{$cobject.date|date:"%Y-%m-%d %H:%M:%S"} ({$cobject.date|dateago})</td> |
| 7 | </tr> |
| 8 | <tr> |
| 9 | <th><strong>{trans 'Author:'}</strong></th><td>{$cobject.author|strip_tags}</td> |
| 10 | </tr> |
| 11 | <tr> |
| 12 | <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> |
| 13 | </tr> |
| 14 | <tr> |
| 15 | <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> |
| 16 | </tr> |
| 17 | <tr> |
| 18 | <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> |
| 19 | </tr> |
| 20 | {if count($diff.files)} |
| 21 | <tr> |
| 22 | <th><strong>{trans 'Files:'}</strong></th> |
| 23 | <td> |
| 24 | {foreach $diff.files as $filename=>$diffdef} |
| 25 | {assign $ndiff = count($diffdef['chunks'])} |
| 26 | <a href="#diff-{$filename|md5}">{$filename}</a> (<a href="#diff-{$filename|md5}">{blocktrans $ndiff}{$ndiff} diff{plural}{$ndiff} diffs{/blocktrans}</a>)<br /> |
| 27 | {/foreach} |
| 28 | </td> |
| 29 | </tr> |
| 30 | {/if} |
| 31 | </table> |
| 32 | {if count($diff.files)} |
| 33 | <h2>{trans 'Change Details'}</h2> |
| 34 | |
| 35 | {$diff.as_html()|safe} |
| 36 | {/if} |
| 37 | {/block} |
| 38 | {block context} |
| 39 | <p><strong>{trans 'Branches:'}</strong><br /> |
| 40 | {foreach $branches as $branch} |
| 41 | {aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $branch)} |
| 42 | <span class="label{if $commit == $branch} active{/if}"><a href="{$url}" class="label">{$branch}</a></span><br /> |
| 43 | {/foreach} |
| 44 | </p> |
| 45 | {/block} |
| 46 | |
| 47 | |
