Sha256: 0f271cb90ad13caf91c503d14c6914a49fe48800d3ed375c8eb9eeee5ce91640

Contents?: true

Size: 1.01 KB

Versions: 9

Compression:

Stored size: 1.01 KB

Contents

<% @row = @row == 'even' ? 'odd' : 'even' %>
<% if @directory.children %>
<ul>
  <% @directory.children.sort {|x,y| x.value.to_s <=> y.value.to_s }.each_with_index do |child,index| %>
    <% if child.is_a?(YARD::CodeObjects::Cucumber::Feature) %>
      <li class="<%= @row %>">
        <div class="item" style="padding-left: <%= @padding %>px">
          <%= linkify child, child.value %>
          <small><%= child.location %></small>
        </div>
      </li>
      <% @row = @row == 'even' ? 'odd' : 'even' %>
    <% end %>

    <% if child.is_a?(YARD::CodeObjects::Cucumber::FeatureDirectory) %>
      <li class="<%= @row %>">
        <div class="item" style="padding-left: <%= @padding %>px">
          <%= "<a class='toggle'></a>" unless child.features.empty? && child.subdirectories.empty? %>
          <%= linkify child, child.value.to_s.capitalize  %>
          <small><%= child.location %></small>
        </div>
        <%= directory_node child, @padding + 15, @row %>
      </li>
    <% end %>
  <% end %>
</ul>
<% end %>

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
yard-gherkin-turnip-1.0.2 lib/templates/default/fulldoc/html/directories.erb
yard-gherkin-turnip-1.0.1 lib/templates/default/fulldoc/html/directories.erb
yard-gherkin-turnip-1.0.0 lib/templates/default/fulldoc/html/directories.erb
yard-nrser-cucumber-0.1.3 lib/templates/default/fulldoc/html/directories.erb
yard-nrser-cucumber-0.1.2 lib/templates/default/fulldoc/html/directories.erb
yard-nrser-cucumber-0.1.1 lib/templates/default/fulldoc/html/directories.erb
yard-nrser-cucumber-0.1.0 lib/templates/default/fulldoc/html/directories.erb
yard-cucumber-4.0.0 lib/templates/default/fulldoc/html/directories.erb
yard-cucumber-3.1.0 lib/templates/default/fulldoc/html/directories.erb