2018-02-02 21:50:09 +00:00
|
|
|
- anchors = local_assigns.fetch(:anchors, [])
|
|
|
|
|
2018-02-22 15:17:49 +00:00
|
|
|
- return unless anchors.any?
|
|
|
|
%ul.nav
|
|
|
|
- anchors.each do |anchor|
|
2018-04-10 20:06:49 +00:00
|
|
|
%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
|
2018-02-22 15:17:49 +00:00
|
|
|
%span.stat-text= anchor.label
|