8 lines
329 B
Text
8 lines
329 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.enabled ? 'nav-link stat-link' : "nav-link btn btn-#{anchor.class_modifier || 'missing'}" do
|
|
.stat-text= anchor.label
|