Sha256: 6701b78c76140752eb3b2f11faca1251dd2ca749f79e5dc6977425673b71f34b

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

<%= partial(:header, :locals => {:repo => @repo}) %>
<h3>Tree: <%= @tree.id %> <%= archive_link @tree, @repo.param %></h3>
<div class="active">
  <ul class="commit-tree">
    <% @tree.trees.each do |tree| %>
      <% tree_path = "/#{tree.name}"%>
      <li class="tree"><a href="<%= @path[:tree] %><%= tree_path %>"><%= tree.basename %></a>
        <ul>
          <% tree.trees.each do |next_tree| %>
            <% new_path = tree_path + "/#{next_tree.name}" %>
            <%= partial(:tree_part, :locals => {:current_tree => next_tree, :tree_path => new_path, :path => @path }) %>
          <% end %>
          <% tree.blobs.each do |next_blob| %>
            <li class="blob"><a href="<%= @path[:blob] %><%= tree_path %>/<%= next_blob.basename %>"><%= next_blob.basename %></a></li>
          <% end %>
        </ul>
      </li>
    <% end %>
    <% @tree.blobs.each do |blob| %>
      <li class="blob"><a href="<%= @path[:blob] %>/<%= blob.basename %>"><%= blob.basename %></a></li>
    <% end %>
  </ul>
  <div class="clearfix">&nbsp;</div>
</div>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
lenary-ginatra-2.0.2 views/tree.erb
ginatra-2.1.1 views/tree.erb
ginatra-2.1.0 views/tree.erb
ginatra-2.0.2 views/tree.erb
ginatra-2.0.1 views/tree.erb