Location: PHPKode > projects > InDefero > indefero-1.0/src/IDF/templates/idf/source/svn/tree.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 'Rev'}</th>
      <th>{trans 'Message'}</th>
      <th>{trans 'Size'}</th>
    </tr>
  </thead>{if (!$tree_in and !$tags_in and $commit != 'HEAD') || $props}
  {aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)} 
  <tfoot>
    {if $props}
    <tr><th colspan="6">
        <ul>
          {foreach $props as $prop => $val}
          <li>{trans 'Property'} <strong>{$prop}</strong> {trans 'set to:'} <em>{$val}</em></li>
          {/foreach}
        </ul>
    </th></tr>
    {/if}
    {if !$tree_in}
    <tr><th colspan="6">{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}
  </tfoot>
  {/if}<tbody>
    {if $base}
    <tr>
      <td>&nbsp;</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>

      <td><a href="{$url}">{$file.file}</a></td>
      <td><span class="smaller">{$file.date|dateago:"wihtout"}</span></td> 
      <td>{$file.rev}</td>
      <td{if $file.type != 'blob'} colspan="2"{/if}><span class="smaller">{$file.author|strip_tags|trim}{trans ':'} {issuetext $file.log, $request, true, false}</span></td>
      {if $file.type == 'blob'}
      <td>{$file.size|size}</td>
      {/if}

    </tr>
    {/foreach}
  </tbody>
</table>
<p class="right soft"><kbd>svn co -r {$commit} {$project.getRemoteAccessUrl()}</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}
<form class="star" action="{url 'IDF_Views_Source_Svn::treeRev', array($project.shortname)}" method="get">
<p><strong>{trans 'Revision:'}</strong> {$commit}</p>
<p>
    <input accesskey="4" type="text" value="{$commit}" name="rev" size="5" />
    <input type="hidden" name="sourcefile" value="{$base}"/>
    <input type="submit" name="s" value="{trans 'Go to revision'}" /></p>
  </form>
<p><strong>{trans 'Branches:'}</strong><br />
{foreach $branches as $branch => $path}
{if $path}{aurl 'url', 'IDF_Views_Source::tree', array($project.shortname, 'HEAD', $path)}
{else}{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, 'HEAD')}{/if}
<span class="label{if in_array($branch, $tree_in)} active{/if}"><a href="{$url}" class="label">{$branch}</a></span><br />
{/foreach}
</p>
{if $tags}
<p><strong>{trans 'Tags:'}</strong><br/>
{foreach $tags as $tag => $path}
{aurl 'url', 'IDF_Views_Source::tree', array($project.shortname, 'HEAD', $path)}
<span class="label{if in_array($tag, $tags_in)} active{/if}"><a href="{$url}" class="label">{$tag}</a></span><br/>
{/foreach}
</p>
{/if}

{/block}
Return current item: InDefero