Sha256: f8aa7b72f597579a1b4df1f4aa9a75dbaff22ff54644504d78144de48c210c88

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

<% if @elements && !@elements.empty? %>
  <% i = (@elements.length % 2 == 0 ? 1 : 0) %>
  <table style="margin-left: 10px; width: 100%;">
    <tr>
      <td valign='top' width="50%">
        <% @elements.each do |letter, objects| %>
          <% if (i += 1) > (@elements.length / 2 + 1) %>
          </td><td valign='top' width="50%">
            <% i = 0 %>
          <% end %>
          <ul id="alpha_<%= letter %>" class="alpha">
            <li class="letter"><%= letter %></li>
            <ul>
              <% objects.each do |obj| %>
                <li>
                  <% if obj.is_a?(YARD::CodeObjects::Lucid::Scenario) || obj.is_a?(YARD::CodeObjects::Lucid::ScenarioOutline) %>
                    <a href="<%= url_for(obj.feature,"scenario_#{obj.path[(/.+_(\d+)$/),1]}") %>">
                 		  <%= h obj.value %>
                 		</a>
                  <% else %>
                    <%= linkify obj, obj.value %>
                  <% end %>
                  <small>(<%= obj.file %>)</small>
                </li>
              <% end %>
            </ul>
          </ul>
        <% end %>
      </td>
    </tr>
  </table>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

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