88 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			88 lines
		
	
	
		
			3.3 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}
 | 
						|
{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)}
 | 
						|
<tfoot>
 | 
						|
<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>
 | 
						|
</tfoot>
 | 
						|
{/if}<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}
 | 
						|
<div class="expander">
 | 
						|
<div class="gradient"></div>
 | 
						|
<h1>
 | 
						|
  {trans 'Branches'}
 | 
						|
  <input type="text" rel="branch-list" class="filter-list"  title="{trans 'filter branches'}" />
 | 
						|
</h1>
 | 
						|
<ul id="branch-list">
 | 
						|
{foreach $branches as $selector => $branch}
 | 
						|
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
 | 
						|
<li class="{if in_array($selector, $tree_in)}active{/if}">
 | 
						|
  <a href="{$url}" class="label">{$branch}</a>
 | 
						|
</li>
 | 
						|
{/foreach}
 | 
						|
</ul>
 | 
						|
{if $tags}
 | 
						|
<h1>
 | 
						|
  {trans 'Tags'}
 | 
						|
  <input type="text" rel="tag-list" class="filter-list"  title="{trans 'filter tags'}" />
 | 
						|
</h1>
 | 
						|
<ul id="tag-list">
 | 
						|
{foreach $tags as $selector => $tag}
 | 
						|
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
 | 
						|
<li class="{if in_array($selector, $tags_in)}active{/if}">
 | 
						|
  <a href="{$url}" class="label">{$tag}</a>
 | 
						|
</li>
 | 
						|
{/foreach}
 | 
						|
</ul>
 | 
						|
{/if}
 | 
						|
</div>
 | 
						|
{/block}
 |