9 lines
411 B
Text
9 lines
411 B
Text
- anchors = local_assigns.fetch(:anchors, [])
|
|
- project_buttons = local_assigns.fetch(:project_buttons, false)
|
|
|
|
- return unless anchors.any?
|
|
%ul.nav
|
|
- anchors.each do |anchor|
|
|
%li.nav-item
|
|
= link_to_if(anchor.link, anchor.label, anchor.link, stat_anchor_attrs(anchor)) do
|
|
.stat-text.d-flex.align-items-center{ class: ('btn gl-button btn-default disabled' if project_buttons) }= anchor.label
|