Sha256: 74c91b62f8042c9661fcb1913dccd319c11c1f5c4555d14d45e42a18f5e97741

Contents?: true

Size: 943 Bytes

Versions: 65

Compression:

Stored size: 943 Bytes

Contents

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

<%= send (method ? :button_to : :link_to), url, class: "block group/item 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-3 py-2 rounded-md"} #{"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 <%= "transition group-hover/item:translate-x-3 duration-200" if @menu_orientation == :side %> 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

65 entries across 65 versions & 1 rubygems

Version Path
bullet_train-themes-light-1.6.3 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.6.2 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.6.1 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.6.0 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.5.2 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.5.1 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.5.0 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.11 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.10 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.9 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.8 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.7 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.6 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.5 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.4 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.3 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.2 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.1 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.4.0 app/views/themes/light/menu/_item.html.erb
bullet_train-themes-light-1.3.25 app/views/themes/light/menu/_item.html.erb