Sha256: dd670375275b6ab84aebd36d9c01304c7a19891d95664c3e95ab6f177e9a51cc

Contents?: true

Size: 973 Bytes

Versions: 131

Compression:

Stored size: 973 Bytes

Contents

<% first ||= false %>
<% url ||= nil %>

<% # convert [:account, model] "urls" to strings. %>
<% url = url.is_a?(String) ? url : main_app.url_for(url) if url %>

<li>
  <div class="flex items-center">
    <!-- Heroicon name: chevron-right -->
    <svg class="flex-shrink-0 h-3 w-3 text-slate-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
      <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
    </svg>

    <% item_style = "ml-3 text-slate-500 uppercase text-2xs tracking-widest" %>

    <% # don't link to the same page we're already on. %>
    <% if url && url != request.url %>
      <%= link_to label, url, class: "#{item_style} hover:text-slate-700 hover:underline dark:text-primary-300" %>
    <% else %>
      <span class="<%= item_style %>"><%= label %></span>
    <% end %>
  </div>
</li>

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
bullet_train-themes-light-1.2.21 app/views/themes/light/_breadcrumb.html.erb
bullet_train-themes-light-1.2.20 app/views/themes/light/_breadcrumb.html.erb
bullet_train-themes-light-1.2.19 app/views/themes/light/_breadcrumb.html.erb
bullet_train-themes-light-1.2.18 app/views/themes/light/_breadcrumb.html.erb
bullet_train-themes-light-1.2.17 app/views/themes/light/_breadcrumb.html.erb
bullet_train-themes-light-1.2.16 app/views/themes/light/_breadcrumb.html.erb
bullet_train-themes-light-1.2.15 app/views/themes/light/_breadcrumb.html.erb
bullet_train-themes-light-1.2.14 app/views/themes/light/_breadcrumb.html.erb
bullet_train-themes-light-1.2.13 app/views/themes/light/_breadcrumb.html.erb
bullet_train-themes-light-1.2.12 app/views/themes/light/_breadcrumb.html.erb
bullet_train-themes-light-1.2.11 app/views/themes/light/_breadcrumb.html.erb