Sha256: 4e228bad838beb733db071a871e374b1f56b17705f10b32dd84f9d2e582c3ea1

Contents?: true

Size: 504 Bytes

Versions: 11

Compression:

Stored size: 504 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-turbo-method=#{method}" if method %>>
    <%= name %>
  </a>
</li>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/dropdown/_item.html.erb
headmin-0.6.2 app/views/headmin/dropdown/_item.html.erb
headmin-0.6.1 app/views/headmin/dropdown/_item.html.erb
headmin-0.6.0 app/views/headmin/dropdown/_item.html.erb
headmin-0.5.9 app/views/headmin/dropdown/_item.html.erb
headmin-0.5.8 app/views/headmin/dropdown/_item.html.erb
headmin-0.5.7 app/views/headmin/dropdown/_item.html.erb
headmin-0.5.6 app/views/headmin/dropdown/_item.html.erb
headmin-0.5.5 app/views/headmin/dropdown/_item.html.erb
headmin-0.5.4 app/views/headmin/dropdown/_item.html.erb
headmin-0.5.3 app/views/headmin/dropdown/_item.html.erb