(also fix the way the attributes view is displayed, i.e. do not use single strings, but one string in context which is much easier to translate)
72 lines
2.8 KiB
HTML
72 lines
2.8 KiB
HTML
{extends "idf/source/base.html"}
|
|
{block docclass}yui-t1{assign $inSourceTree=true}{/block}
|
|
{block body}
|
|
<h2 class="top"><a href="{url 'IDF_Views_Source::treeBase', array($project.shortname, $commit)}">{trans 'Root'}</a><span class="sep">/</span>{if $breadcrumb}{$breadcrumb|safe}{/if}</h2>
|
|
|
|
<table summary="" class="tree-list">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2">{trans 'File'}</th>
|
|
<th>{trans 'Age'}</th>
|
|
<th>{trans 'Message'}</th>
|
|
<th>{trans 'Size'}</th>
|
|
</tr>
|
|
</thead>
|
|
{if (!$tree_in and !$tags_in) or $props}
|
|
{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)}
|
|
<tfoot>
|
|
{if $props}
|
|
<tr><th colspan="5">
|
|
<ul>
|
|
{foreach $props as $prop => $val}
|
|
<li>{blocktrans}Property <strong>{$prop}</strong> set to <em>{$val}</em>{/blocktrans}</li>
|
|
{/foreach}
|
|
</ul>
|
|
</th></tr>
|
|
{/if}
|
|
{if !$tree_in and !$tags_in}
|
|
<tr><th colspan="5">{blocktrans}Source at commit <a class="mono" href="{$url}">{$commit}</a> created {$cobject.date|dateago}.{/blocktrans}<br/>
|
|
<span class="smaller">{blocktrans}By {$cobject.author|strip_tags|trim}, {$cobject.title}{/blocktrans}</span>
|
|
</th></tr>
|
|
{/if}
|
|
{/if}
|
|
</tfoot>
|
|
<tbody>
|
|
{if $base}
|
|
<tr>
|
|
<td> </td>
|
|
<td>
|
|
<a href="{url 'IDF_Views_Source::tree', array($project.shortname, $commit, $prev)}">..</a></td>
|
|
<td colspan="3"></td>
|
|
</tr>
|
|
{/if}
|
|
{foreach $files as $file}
|
|
{aurl 'url', 'IDF_Views_Source::tree', array($project.shortname, $commit, $file.efullpath)}
|
|
<tr>
|
|
<td class="fileicon"><img src="{media '/idf/img/'~$file.type~'.png'}" alt="{$file.type}" /></td>
|
|
{if $file.type != 'extern'}
|
|
<td{if $file.type == 'tree'} colspan="4"{/if}><a href="{$url}">{$file.file}</a></td>{else}<td><a href="#" title="{$file.hash}">{$file.file}</a></td>{/if}
|
|
{if $file.type == 'blob'}
|
|
{if isset($file.date) and $file.log != '----'}
|
|
<td><span class="smaller">{$file.date|dateago:"without"}</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}
|
|
{if $file.type == 'extern'}
|
|
<td colspan="3">{$file.extern}</td>
|
|
{/if}
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{aurl 'url', 'IDF_Views_Source::download', array($project.shortname, $commit)}
|
|
<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 this version'}</a> {trans 'or'}
|
|
<kbd>mtn clone {$project.getSourceAccessUrl($user, $commit)}</kbd> <a href="{url 'IDF_Views_Source::help', array($project.shortname)}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/help.png'}" alt="{trans 'Help'}" /></a>
|
|
</p>
|
|
{/block}
|
|
{block context}
|
|
{include 'idf/source/mtn/branch_tag_list.html'}
|
|
{/block}
|
|
|