Sha256: 9daaa6978f3ed9b8d3430a6460da13e63f4a756e1dd2d6b6ffd869214cd48b70

Contents?: true

Size: 803 Bytes

Versions: 7

Compression:

Stored size: 803 Bytes

Contents

<% @service_presenter.endpoints_by_prefix.each do |prefix, endpoints| %>
  <li class="endpoint-group <%= (@endpoint_presenter.nil? && 'opened') || (endpoints.map(&:url).include?(@endpoint_presenter.url) && 'active') %>">
      <a href="#"><%= prefix %></a>
      <ul class="nav">
          <% endpoints.each do |endpoint| %>
            <li class="<%= (@endpoint_presenter.nil? && 'opened') || (endpoint.url == @endpoint_presenter.url && 'active') %>">
                <a href="<%= endpoint.url %>">
                  <span class="btn btn-<%= endpoint.verb_colorname %> btn-xs"><%= endpoint.verb %>&nbsp;<%= endpoint.named_path %></span>
                  <br>
                  <span><%= endpoint.title %></span>
                </a>
            </li>
          <% end %>
      </ul>
  </li>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lurker-0.6.8 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.6.7 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.6.6 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.6.5 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.6.4 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.6.3 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.6.2 lib/lurker/templates/layouts/_sidemenu.html.erb