Sha256: 41117b66d7842c4f51760975d70bda976d5bca7e96e9d557fce21fd255db0f21

Contents?: true

Size: 504 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
headmin-0.5.2 app/views/headmin/dropdown/_item.html.erb
headmin-0.5.1 app/views/headmin/dropdown/_item.html.erb
headmin-0.5.0 app/views/headmin/dropdown/_item.html.erb
headmin-0.4.2 app/views/headmin/dropdown/_item.html.erb
headmin-0.4.1 app/views/headmin/dropdown/_item.html.erb
headmin-0.4.0 app/views/headmin/dropdown/_item.html.erb
headmin-0.3.4 app/views/headmin/dropdown/_item.html.erb
headmin-0.3.3 app/views/headmin/dropdown/_item.html.erb