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
Elliot Winkler 6f8b7e15fe Make improvements to the YARD layout
* Adjust padding/margin around and inside of blockquotes
* Use ems for p margin
* Since we will be adding a custom file whose title is camel-case,
  make two changes to the header:
  * Drop "File:" in the header for files
  * Change styles for header and search to use standard case instead
    of all caps, and drop letter spacing
* Make footer smaller and more human readable
2015-10-08 21:30:42 -06:00

14 lines
605 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.sub(/\AFile: /, "") %></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>