<% if @directory %>
Directory: <%= h @directory.name.to_s.capitalize %>
<%= h(@directory.file) %>
Features:<%= features.size %> Scenarios:<%= scenarios.size %>
Tags: <%= tags.collect {|tag| linkify(tag,tag.value) }.join(",\n") %>
<% if @directories_by_letter && !@directories_by_letter.empty? %>
Subdirectories
<% i = 0 %>
<% @directories_by_letter.each do |directory| %> <% if (i += 1) % 8 == 0 %> <% i = 0 %> <% end %>
    <%= linkify directory, directory.name %>
<% end %>
<% end %> <% if @objects_by_letter && !@objects_by_letter.empty? %>
Features
<% i = 0 %>
<% @objects_by_letter.sort_by {|l,o| l.to_s }.each do |letter, objects| %> <% if (i += 1) % 8 == 0 %> <% i = 0 %> <% end %>
  • <%= letter %>
    • <% objects.each do |obj| %>
    • <%= linkify obj, obj.value %> <% if !obj.namespace.root? %> (<%= obj.namespace.file %>) <% end %>
    • <% end %>
<% end %>
<% end %> <% end %>