Sha256: 79e66becb49524c15e76e5a68442f2ac17bd6ce5d8b713e7e7a3c1edf154ad06

Contents?: true

Size: 1.18 KB

Versions: 8

Compression:

Stored size: 1.18 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::Cucumber::Scenario) || obj.is_a?(YARD::CodeObjects::Cucumber::ScenarioOutline) %>
                    <% index = obj.path[(/.+_(\d+)$/),1].to_i - 1 %>
                    <a href="<%= url_for(obj.feature,"scenario_#{index}") %>">
                 		  <%= 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

8 entries across 8 versions & 3 rubygems

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