2018-02-02 21:50:09 +00:00
|
|
|
- anchors = local_assigns.fetch(:anchors, [])
|
2020-09-29 18:09:52 +00:00
|
|
|
- project_buttons = local_assigns.fetch(:project_buttons, false)
|
2018-02-02 21:50:09 +00:00
|
|
|
|
2018-02-22 15:17:49 +00:00
|
|
|
- return unless anchors.any?
|
2022-07-08 21:08:40 +00:00
|
|
|
%ul.nav.gl-gap-3
|
2018-02-22 15:17:49 +00:00
|
|
|
- anchors.each do |anchor|
|
2018-04-10 20:06:49 +00:00
|
|
|
%li.nav-item
|
2020-11-10 18:09:07 +00:00
|
|
|
= link_to_if(anchor.link, anchor.label, anchor.link, stat_anchor_attrs(anchor)) do
|
2021-02-15 06:09:22 +00:00
|
|
|
.stat-text.d-flex.align-items-center{ class: ('btn gl-button btn-default disabled' if project_buttons) }= anchor.label
|