templates/default/layout/html/index.erb in yard-0.4.0 vs templates/default/layout/html/index.erb in yard-0.5.0
- old
+ new
@@ -5,11 +5,11 @@
<% if @files && @files.size > 0 %>
<h2>File Listing</h2>
<ul id="files">
<% n = 1 %>
<% @files.each_with_index do |file, i| %>
- <li class="r<%= n %>"><%= link_file(file, File.basename(file).gsub(/\..+$/, '')) %></li>
+ <li class="r<%= n %>"><%= link_file(file, File.basename(file).gsub(/\.[^.]+$/, '')) %></li>
<% n = n == 2 ? 1 : 2 %>
<% end %>
</ul>
<% end %>
<div class="clear"></div>
@@ -33,10 +33,10 @@
<li class="letter"><%= letter %></li>
<ul>
<% objects.each do |obj| %>
<li>
<%= linkify obj, obj.name %>
- <% if obj.namespace != Registry.root %>
+ <% if !obj.namespace.root? %>
<small>(<%= obj.namespace.path %>)</small>
<% end %>
</li>
<% end %>
</ul>
\ No newline at end of file