File: breadcrumb.erb

package info (click to toggle)
ruby-enumerable-statistics 2.0.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,036 kB
  • sloc: ansic: 1,808; ruby: 679; makefile: 11; sh: 4
file content (11 lines) | stat: -rwxr-xr-x 677 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
<div id="menu">
  <% if @contents || @file %>
    <% if object != '_index.html' %><a href="<%= url_for_index %>">Index</a> &raquo; <% end %>
    <span class="title"><%= @breadcrumb_title %></span>
  <% elsif object.is_a?(CodeObjects::Base) %>
    <a href="<%= url_for_index %>"><% if object.root? || object.type == :method %>Index<% else %>Index (<%= object.name.to_s[0,1] %>)<% end %></a> &raquo;
    <%= @breadcrumb.map {|obj| "<span class='title'>" + linkify(obj, obj.name) + "</span>" }.join(" &raquo; ") %>
    <%= @breadcrumb.size > 0 ? " &raquo; " : "" %>
    <span class="title"><%= object.root? ? "Top Level Namespace" : object.name(true) %></span>
  <% end %>
</div>