Sha256: 94b235cb27e222223208841963306b7e3d82fab5953acedd4e9666eca9f4f61e

Contents?: true

Size: 803 Bytes

Versions: 5

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><%= endpoint.title %></span>
                  <br>
                  <span class="btn btn-<%= endpoint.verb_colorname %> btn-xs"><%= endpoint.verb %>&nbsp;<%= endpoint.named_path %></span>
                </a>
            </li>
          <% end %>
      </ul>
  </li>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lurker-1.0.0 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.6.12 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.6.11 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.6.10 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.6.9 lib/lurker/templates/layouts/_sidemenu.html.erb