1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/doc_config/yard/templates/default/layout/html/breadcrumb.erb
2014-06-20 16:41:32 -06:00

14 lines
585 B
Text

<div id="menu">
<% unless @file && @file.filename == 'README.md' %>
<span class="title">
<%= linkify('file:README.md', 'Home') %>
</span> &raquo;
<% end %>
<% if @contents || @file %>
<span class="title"><%= @breadcrumb_title %></span>
<% elsif object.is_a?(CodeObjects::Base) %>
<%= @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>