Sha256: 105a914b82aeef6b2ed1f7ba3a6be099407742de042cea278c8875549d3d731d
Contents?: true
Size: 1.42 KB
Versions: 6
Compression:
Stored size: 1.42 KB
Contents
<% dropdown_item = breadcrumb_items.select { |item| item[:dropdown_cell].present? }.last %> <div class="menu-bar__breadcrumb-mobile__dropdown-trigger"> <span> <% breadcrumb_items.last(2).each_with_index do |item, i| %> <% item_label = decidim_escape_translated(item[:label]) %> <% if i.positive? %> <span>/</span> <% end %> <span class="cursor-pointer <%= "truncate" if i.positive? %>" <%== 'aria-current="page"' if item[:active] %>> <% if item[:url].present? && !is_active_link?(item[:url], :exclusive) %> <%= link_to(item_label, item[:url]) %> <% else %> <%= item_label %> <% end %> </span> <% end %> </span> <% if dropdown_item.present? %> <button id="secondary-dropdown-trigger-mobile" data-component="dropdown" data-hover="true" data-target="secondary-dropdown-menu-mobile"> <%= icon "arrow-down-s-line", class: "flex-none w-6 h-6 fill-current" %><span class="sr-only"><%= t("layouts.decidim.header.main_menu") %></span> </button> <% end %> <% if content_for?(:participatory_space_mobile_actions) %> <div class="menu-bar__actions-mobile"> <%= content_for :participatory_space_mobile_actions %> </div> <% end %> </div> <% if dropdown_item.present? %> <div id="secondary-dropdown-menu-mobile" aria-hidden="true"> <%= cell dropdown_item[:dropdown_cell], dropdown_item[:resource], mobile: true %> </div> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems