8 lines
407 B
Text
8 lines
407 B
Text
- anchors = local_assigns.fetch(:anchors, [])
|
|
|
|
- return unless anchors.any?
|
|
%ul.nav
|
|
- anchors.each do |anchor|
|
|
%li.nav-item
|
|
= link_to_if anchor.link, anchor.label, anchor.link, class: anchor.is_link ? 'nav-link stat-link d-flex align-items-center' : "nav-link btn btn-#{anchor.class_modifier || 'missing'} d-flex align-items-center" do
|
|
.stat-text.d-flex.align-items-center= anchor.label
|