Sha256: 40c5161d28f9f8365b60b51894d68fce74cb1a17660a966afcedee26f2832e51

Contents?: true

Size: 1.3 KB

Versions: 5

Compression:

Stored size: 1.3 KB

Contents

<% service_presenter.endpoints_by_prefix.each_with_index do |(prefix, endpoints), index| %>
  <div class="panel panel-default">
    <div class="panel-heading">
      <h4 class="panel-title">
        <a data-toggle="collapse" href="#collapseMenu<%=index%>"><%= prefix %></a>
      </h4>
    </div>

    <div id="collapseMenu<%=index%>" class="panel-collapse collapse">
      <div class='panel-body'>
        <table class='table'>
          <tbody>
            <% endpoints.each do |endpoint| %>
              <tr>
                <td>
                  <a href="<%= service_presenter.html_directory %>/<%= endpoint.url %>">
                    <% if endpoint.endpoint.description.present? %>
                      <%= endpoint.endpoint.description %>
                      <h6>
                        <span class="label label-default"><%= endpoint.verb %></span>
                        <%= endpoint.path %>
                      </h6>
                    <% else %>
                      <span class='label label-info'>
                        <%= endpoint.verb %>
                      </span>
                      <%= endpoint.path %>
                    <% end %>
                  </a>
                </td>
              </tr>
            <% end %>
          </tbody>
        </table>
      </div>
    </div>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lurker-0.5.4 lib/lurker/templates/lurker/rendering/_left_menu.html.erb
lurker-0.5.3 lib/lurker/templates/lurker/rendering/_left_menu.html.erb
lurker-0.5.2 lib/lurker/templates/lurker/rendering/_left_menu.html.erb
lurker-0.5.1 lib/lurker/templates/lurker/rendering/_left_menu.html.erb
lurker-0.5.0 lib/lurker/templates/lurker/rendering/_left_menu.html.erb