Sha256: 0b24c3f414a8011bf97f94b55d89991242ec2aecafa353204c342720ccf5ce87

Contents?: true

Size: 1.01 KB

Versions: 5

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::Lucid::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::Lucid::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

5 entries across 5 versions & 1 rubygems

Version Path
yard-lucid-0.5.0 lib/templates/default/fulldoc/html/directories.erb
yard-lucid-0.4.0 lib/templates/default/fulldoc/html/directories.erb
yard-lucid-0.3.0 lib/templates/default/fulldoc/html/directories.erb
yard-lucid-0.2.0 lib/templates/default/fulldoc/html/directories.erb
yard-lucid-0.1.0 lib/templates/default/fulldoc/html/directories.erb