Sha256: 781e08653462108c015c66f7f8cda7b0dbdaa4ab953e4fb6efe08b919fe869db
Contents?: true
Size: 1.93 KB
Versions: 3
Compression:
Stored size: 1.93 KB
Contents
<% if @repo.branch_exists?(params[:tree]) %> <div class="row-fluid"> <ul class="nav nav-pills pull-left"> <li> <a href="<%= prefix_url(@repo.param) %>/<%= params[:tree] %>">Commits</a> </li> <li class="active"> <a href="<%= prefix_url(@repo.param) %>/tree/<%= params[:tree] %>">Source</a> </li> <li> <a href="<%= prefix_url(@repo.param) %>/stats/<%= params[:tree] %>">Stats</a> </li> </ul> <div class="btn-group pull-right"> <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"> <%= params[:tree] %> <span class="caret"></span> </button> <ul class="dropdown-menu"> <li class="dropdown-hint">Branches</li> <li class="divider"></li> <% @repo.branches.each do |branch| %> <% if @blob %> <li><a href="<%= prefix_url(@repo.param) %>/blob/<%= branch.name %>/<%= params[:splat].first %>"><%= branch.name %></a></li> <% else %> <li><a href="<%= prefix_url(@repo.param) %>/tree/<%= branch.name %><%= "/#{params[:splat].first}" unless params[:splat].nil? || params[:splat].empty? %>"><%= branch.name %></a></li> <% end %> <% end %> </ul> </div> </div> <% end %> <% unless params[:splat].nil? or params[:splat].empty? %> <% tree_nav = params[:splat].first.split('/') %> <ul class="breadcrumb" id="js-tree-nav"> <li> <a href="<%= prefix_url(@repo.param) %>/tree/<%= params[:tree] %>"><%= @repo.name %></a> <span class="divider">/</span> </li> <% tree_nav.each_with_index do |path, index| %> <% if index == tree_nav.size - 1 %> <li class="active"><%= tree_nav.last %></li> <% else %> <li> <a href="<%= prefix_url(@repo.param) %>/tree/<%= params[:tree] %>/<%= tree_nav[0..index].join('/') %>"><%= path %></a> <span class="divider">/</span> </li> <% end %> <% end %> </ul> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ginatra-4.0.2 | views/_tree_nav.erb |
ginatra-4.0.1 | views/_tree_nav.erb |
ginatra-4.0.0 | views/_tree_nav.erb |