Sha256: eeb0276225abe8cba3f69d72274858bfe3681801256f4f9a2e32313ac7985b5a

Contents?: true

Size: 498 Bytes

Versions: 12

Compression:

Stored size: 498 Bytes

Contents

<%#
    headmin/dropdown/item
    accepts block: no
    parameters:
      name: Name of the link in the dropdown menu
      url: Url of the link in the dropdown menu
      method: Sets data-method of url
%>

<% method = local_assigns.has_key?(:method) ? method : nil %>
<% url = local_assigns.has_key?(:url) ? url : '' %>
<% name = local_assigns.has_key?(:name) ? name : '' %>

<li>
  <a class="dropdown-item" href="<%= url %>" <%= "data-method=#{method}" if method %>>
    <%= name %>
  </a>
</li>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
headmin-0.2.9 app/views/headmin/dropdown/_item.html.erb
headmin-0.3.2 app/views/headmin/dropdown/_item.html.erb
headmin-0.3.1 app/views/headmin/dropdown/_item.html.erb
headmin-0.2.8 app/views/headmin/dropdown/_item.html.erb
headmin-0.2.7 app/views/headmin/dropdown/_item.html.erb
headmin-0.2.6 app/views/headmin/dropdown/_item.html.erb
headmin-0.2.5 app/views/headmin/dropdown/_item.html.erb
headmin-0.2.4 app/views/headmin/dropdown/_item.html.erb
headmin-0.2.3 app/views/headmin/dropdown/_item.html.erb
headmin-0.2.2 app/views/headmin/dropdown/_item.html.erb
headmin-0.2.1 app/views/headmin/dropdown/_item.html.erb
headmin-0.2.0 app/views/headmin/dropdown/_item.html.erb