Sha256: 3aefa903049ec2bb3b6c79b8fddf8da6608bf7ab8c6009f6d1f4a95341af3610

Contents?: true

Size: 662 Bytes

Versions: 34

Compression:

Stored size: 662 Bytes

Contents

<% yield p = np %>

<% method ||= nil %>
<% active ||= request.path == url %>

<%= send (method ? :button_to : :link_to), url, class: "block group hover:text-white hover:no-underline hover-indent-child #{'bg-primary-900 dark:bg-black dark:bg-opacity-10' if active} text-white px-2 py-2 rounded-md dark:text-white", method: method do %>
  <div class="inline-block indent-child flex items-center">
    <!-- Heroicon name: home -->
    <% if p.content_for? :icon %>
      <span class="mr-3 h-6 w-6 text-center text-primary-300 text-xl leading-6 dark:text-gray-400">
        <%= p.content_for :icon %>
      </span>
    <% end %>
    <%= label %>
  </div>
<% end %>

Version data entries

34 entries across 34 versions & 4 rubygems

Version Path
bullet_train-themes-light-1.0.28 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-custom-1.0 app/views/themes/custom/menu/_item.html.erb
bullet_train-themes-testing-1.0 app/views/themes/testing/menu/_item.html.erb
bullet_train-themes-tester-1.0 app/views/themes/tester/menu/_item.html.erb
bullet_train-themes-light-1.0.27 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.0.26 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.0.25 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.0.24 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.0.23 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.0.22 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.0.21 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.0.20 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.0.19 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.0.17 app/views/themes/light/menu/_item.html.erb