Sha256: 392bae53fa235af1f0795fca526a0e9ef9272fe0f1e0eca19456575597be3cd3

Contents?: true

Size: 876 Bytes

Versions: 6

Compression:

Stored size: 876 Bytes

Contents

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

<%= send (method ? :button_to : :link_to), url, class: "block group hover:text-white hover:no-underline #{'bg-primary-900 dark:bg-black dark:bg-opacity-10' if active} text-white #{@menu_orientation == :top ? "px-5 py-5" : "px-2 py-2 rounded-md hover-indent-child"} #{"rounded-tl-lg" unless @not_first || BulletTrain::Themes::Light.show_logo_in_account} dark:text-white", data: {"desktop-menu-target": "menuItemLink"}, tabIndex: 0, method: method do %>
  <div class="inline-block indent-child flex items-center">
    <!-- Heroicon name: home -->
    <% if partial.icon? %>
      <span class="mr-3 h-6 w-6 text-center text-secondary-300 text-xl leading-6 dark:text-slate-400">
        <%= partial.icon %>
      </span>
    <% end %>
    <%= label %>
  </div>
<% end %>

<% # Ugly, but works. %>
<% @not_first = true %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bullet_train-themes-light-1.2.27 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.2.26 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.2.25 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.2.24 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.2.23 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.2.22 app/views/themes/light/menu/_item.html.erb