2008-11-23 17:45:00 +01:00
|
|
|
{extends "idf/source/base.html"}
|
|
|
|
{block extraheader}<link rel="stylesheet" type="text/css" href="{media '/idf/css/prettify.css'}" />{/block}
|
|
|
|
{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 class="code" summary=" ">
|
|
|
|
{if !$tree_in}
|
2011-01-26 01:55:58 +01:00
|
|
|
{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)}
|
2008-11-23 17:45:00 +01:00
|
|
|
<tfoot>
|
|
|
|
<tr><th colspan="2">{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>
|
|
|
|
</tfoot>
|
|
|
|
{/if}
|
|
|
|
<tbody>
|
|
|
|
{$file}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2010-01-20 22:33:53 +01:00
|
|
|
{aurl 'url', 'IDF_Views_Source::getFile', array($project.shortname, $commit, $efullpath)}
|
2008-11-23 17:45:00 +01: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 this file'}</a></p>
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block context}
|
2011-01-26 01:55:58 +01:00
|
|
|
<div class="expander">
|
|
|
|
<div class="gradient"></div>
|
|
|
|
<h1>
|
|
|
|
{trans 'Branches'}
|
|
|
|
<div class="input-with-delete">
|
|
|
|
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
|
|
|
<span></span>
|
|
|
|
</div>
|
|
|
|
</h1>
|
|
|
|
<ul id="branch-list">{foreach $branches as $branch => $path}
|
2008-11-23 17:45:00 +01:00
|
|
|
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
|
2011-01-26 01:55:58 +01:00
|
|
|
<li class="label{if in_array($branch, $tree_in)} active{/if}">
|
|
|
|
<a href="{$url}" class="label">{$branch}</a>
|
|
|
|
</li>
|
2008-11-23 17:45:00 +01:00
|
|
|
{/foreach}
|
2011-01-26 01:55:58 +01:00
|
|
|
</ul>
|
2009-11-06 18:06:01 +01:00
|
|
|
{if $tags}
|
2011-01-26 01:55:58 +01:00
|
|
|
<h1>
|
|
|
|
{trans 'Tags'}
|
|
|
|
<div class="input-with-delete">
|
|
|
|
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
|
|
|
<span></span>
|
|
|
|
</div>
|
|
|
|
</h1>
|
|
|
|
<ul id="tag-list">
|
2009-11-06 18:06:01 +01:00
|
|
|
{foreach $tags as $tag => $path}
|
|
|
|
{aurl 'url', 'IDF_Views_Source::tree', array($project.shortname, 'HEAD', $path)}
|
2011-01-26 01:55:58 +01:00
|
|
|
<li class="label{if in_array($tag, $tags_in)} active{/if}">
|
|
|
|
<a href="{$url}" class="label">{$tag}</a>
|
|
|
|
</li>
|
2009-11-06 18:06:01 +01:00
|
|
|
{/foreach}
|
2011-01-26 01:55:58 +01:00
|
|
|
</ul>
|
2009-11-06 18:06:01 +01:00
|
|
|
{/if}
|
2011-01-26 01:55:58 +01:00
|
|
|
</div>
|
2008-11-23 17:45:00 +01:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block javascript}
|
|
|
|
<script type="text/javascript" src="{media '/idf/js/prettify.js'}"></script>
|
|
|
|
<script type="text/javascript">prettyPrint();</script>
|
|
|
|
{/block}
|