2010-04-26 23:56:25 +02: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 and !$tags_in}
|
2010-04-30 02:11:40 +02:00
|
|
|
{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)}
|
2010-04-26 23:56:25 +02: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>
|
|
|
|
{aurl 'url', 'IDF_Views_Source::getFile', array($project.shortname, $commit, $fullpath)}
|
|
|
|
<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>
|
2011-01-26 01:37:29 +01:00
|
|
|
{/block}
|
|
|
|
{block javascript}
|
|
|
|
<script type="text/javascript" src="{media '/idf/js/prettify.js'}"></script>
|
|
|
|
<script type="text/javascript">prettyPrint();</script>
|
2010-04-26 23:56:25 +02:00
|
|
|
{/block}
|
|
|
|
{block context}
|
2011-01-26 01:37:29 +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">
|
2010-04-30 02:38:45 +02:00
|
|
|
{foreach $branches as $selector => $branch}
|
|
|
|
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
|
2011-01-26 01:37:29 +01:00
|
|
|
<li class="{if in_array($selector, $tree_in)}active{/if}">
|
|
|
|
<a href="{$url}" class="label">{$branch}</a>
|
|
|
|
</li>
|
2010-04-26 23:56:25 +02:00
|
|
|
{/foreach}
|
2011-01-26 01:37:29 +01:00
|
|
|
</ul>
|
2010-04-26 23:56:25 +02:00
|
|
|
{if $tags}
|
2011-01-26 01:37:29 +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">
|
2010-04-30 02:38:45 +02:00
|
|
|
{foreach $tags as $selector => $tag}
|
|
|
|
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
|
2011-01-26 01:37:29 +01:00
|
|
|
<li class="{if in_array($selector, $tags_in)}active{/if}">
|
|
|
|
<a href="{$url}" class="label">{$tag}</a>
|
|
|
|
</li>
|
2010-04-26 23:56:25 +02:00
|
|
|
{/foreach}
|
2011-01-26 01:37:29 +01:00
|
|
|
</ul>
|
2010-04-26 23:56:25 +02:00
|
|
|
{/if}
|
2011-01-26 01:37:29 +01:00
|
|
|
</div>
|
2010-04-26 23:56:25 +02:00
|
|
|
{/block}
|
2011-01-26 01:37:29 +01:00
|
|
|
|