11 lines
745 B
Text
11 lines
745 B
Text
- dropdown_location = local_assigns.fetch(:location, nil)
|
|
- button_tooltip = local_assigns.fetch(:title, _("Show parent pages"))
|
|
- if defined?(@breadcrumb_dropdown_links) && @breadcrumb_dropdown_links.key?(dropdown_location)
|
|
%li.dropdown
|
|
%button.text-expander.has-tooltip.js-breadcrumbs-collapsed-expander{ type: "button", data: { toggle: "dropdown", container: "body" }, "aria-label": button_tooltip, title: button_tooltip }
|
|
= sprite_icon("ellipsis_h", size: 12)
|
|
= sprite_icon("angle-right", size: 8, css_class: "breadcrumbs-list-angle")
|
|
.dropdown-menu
|
|
%ul
|
|
- @breadcrumb_dropdown_links[dropdown_location].each_with_index do |link, index|
|
|
%li{ style: "text-indent: #{[index * 16, 60].min}px;" }= link
|