Sha256: e608cfe48725008a06b2c3f8e16cae696e65669f6195c2c1d06f0ba330525227

Contents?: true

Size: 809 Bytes

Versions: 5

Compression:

Stored size: 809 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.description %></span>
                </a>
            </li>
          <% end %>
      </ul>
  </li>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lurker-0.6.1 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.5.7 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.6.0 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.5.6 lib/lurker/templates/layouts/_sidemenu.html.erb
lurker-0.5.5 lib/lurker/templates/layouts/_sidemenu.html.erb