Sha256: 4fd74e721dbbc3daa567d20a7fc1b3531418fec6846091e93b3875e6646c8297
Contents?: true
Size: 970 Bytes
Versions: 46
Compression:
Stored size: 970 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-gray-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-gray-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-gray-700 hover:underline dark:text-primary-300" %> <% else %> <span class="<%= item_style %>"><%= label %></span> <% end %> </div> </li>
Version data entries
46 entries across 46 versions & 4 rubygems