Sha256: a220be27babbbd0804985053aa0621a5a96deb3e6bd35aef97a983c35a269957

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 Bytes

Contents

<%#
    name: 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 = defined?(method) ? method : false
%>
<li>
  <a class="dropdown-item" href="<%= url %>" <%= method ? "data-method=#{method}" : "" %>>
    <%= name %>
  </a>
</li>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
headmin-0.1.2 app/views/headmin/layout/dropdown/_item.html.erb
headmin-0.1.1 app/views/headmin/layout/dropdown/_item.html.erb