Sha256: 51fd24d8367559cad73d37201c224f5c802898894a90e616a5a38f510c40e28a

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

<% title "#{@repo.name} at #{@tree.oid[0..6]}" %>

<div id="pjax-container">
  <%= partial :header, locals: { repo: @repo } %>
  <%= partial :tree_nav %>

  <div id="loader"><img src="<%= prefix_url("img/loader.svg") %>" alt="loading"></div>

  <div class="list-group" id="js-tree">
    <% @tree.each do |tree| %>
      <% next unless tree[:type] == :commit && tree[:filemode] == 57344 %>
      <a title="submodule <%= tree[:name] %> @ <%= tree[:oid] %>" class="list-group-item">
        <img src="/img/hdd-o.svg" alt="submodule" class="icon"> <%= tree[:name] %>
      </a>
    <% end %>

    <% @tree.each_tree do |tree| %>
      <a href="<%= prefix_url(@path[:tree]) %>/<%= tree[:name] %>" class="list-group-item">
        <img src="/img/folder.svg" alt="folder" class="icon"> <%= tree[:name] %>
      </a>
    <% end %>

    <% @tree.each_blob do |blob| %>
      <a href="<%= prefix_url(@path[:blob]) %>/<%= blob[:name] %>" class="list-group-item">
        <%= file_icon blob[:filemode] %> <%= blob[:name] %>
      </a>
    <% end %>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ginatra-4.1.0 views/tree.erb