| 1 | {extends "idf/source/base.html"}␊ |
| 2 | {block docclass}yui-t1{assign $inSourceTree=true}{/block}␊ |
| 3 | {block body}␊ |
| 4 | <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>␊ |
| 5 | ␊ |
| 6 | <table summary="" class="tree-list">␊ |
| 7 | <thead>␊ |
| 8 | <tr>␊ |
| 9 | <th colspan="2">{trans 'File'}</th>␊ |
| 10 | <th>{trans 'Age'}</th>␊ |
| 11 | <th>{trans 'Message'}</th>␊ |
| 12 | <th>{trans 'Size'}</th>␊ |
| 13 | </tr>␊ |
| 14 | </thead>{if !$tree_in and !$tags_in}␊ |
| 15 | {aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)}␊ |
| 16 | <tfoot>␊ |
| 17 | <tr><th colspan="5">{blocktrans}Source at commit <a class="mono" href="{$url}">{$commit}</a> created {$cobject.date|dateago}.{/blocktrans}<br/>␊ |
| 18 | <span class="smaller">{blocktrans}By {$cobject.author|strip_tags|trim}, {$cobject.title}{/blocktrans}</span>␊ |
| 19 | </th></tr>␊ |
| 20 | </tfoot>␊ |
| 21 | {/if}<tbody>␊ |
| 22 | {if $base}␊ |
| 23 | <tr>␊ |
| 24 | <td> </td>␊ |
| 25 | <td>␊ |
| 26 | <a href="{url 'IDF_Views_Source::tree', array($project.shortname, $commit, $prev)}">..</a></td>␊ |
| 27 | <td colspan="3"></td>␊ |
| 28 | </tr>␊ |
| 29 | {/if}␊ |
| 30 | {foreach $files as $file}␊ |
| 31 | {aurl 'url', 'IDF_Views_Source::tree', array($project.shortname, $commit, $file.efullpath)}␊ |
| 32 | <tr>␊ |
| 33 | <td class="fileicon"><img src="{media '/idf/img/'~$file.type~'.png'}" alt="{$file.type}" /></td>␊ |
| 34 | {if $file.type != 'extern'}␊ |
| 35 | <td{if $file.type == 'tree'} colspan="4"{/if}><a href="{$url}"><nobr>{$file.file}</nobr></a></td>{else}<td><a href="#" title="{$file.hash}"><nobr>{$file.file}</nobr></a></td>{/if}␊ |
| 36 | {if $file.type == 'blob'}␊ |
| 37 | {if isset($file.date) and $file.log != '----'}␊ |
| 38 | <td><span class="smaller"><nobr>{$file.date|dateago:"without"}</nobr></span></td>␊ |
| 39 | <td><span class="smaller">{$file.author|strip_tags|trim}{trans ':'} {issuetext $file.log, $request, true, false}</span></td>␊ |
| 40 | {else}<td colspan="2"></td>{/if}␊ |
| 41 | <td><nobr>{$file.size|size}</nobr></td>{/if}␊ |
| 42 | {if $file.type == 'extern'}␊ |
| 43 | <td colspan="3">{$file.extern}</td>␊ |
| 44 | {/if}␊ |
| 45 | </tr>␊ |
| 46 | {/foreach}␊ |
| 47 | </tbody>␊ |
| 48 | </table>␊ |
| 49 | {aurl 'url', 'IDF_Views_Source::download', array($project.shortname, $commit)}␊ |
| 50 | <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>git clone {$project.getSourceAccessUrl($user)}</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>␊ |
| 51 | ␊ |
| 52 | ␊ |
| 53 | {/block}␊ |
| 54 | {block context}␊ |
| 55 | {include 'idf/source/git/branch_tag_list.html'}␊ |
| 56 | {/block}␊ |
| 57 | |