2018-03-27 19:54:05 +05:30
|
|
|
- anchors = local_assigns.fetch(:anchors, [])
|
2021-01-03 14:25:43 +05:30
|
|
|
- project_buttons = local_assigns.fetch(:project_buttons, false)
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
- return unless anchors.any?
|
2018-11-20 20:47:30 +05:30
|
|
|
%ul.nav
|
2018-03-27 19:54:05 +05:30
|
|
|
- anchors.each do |anchor|
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.nav-item
|
2019-02-15 15:39:39 +05:30
|
|
|
= 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
|
2021-01-03 14:25:43 +05:30
|
|
|
.stat-text.d-flex.align-items-center{ class: ('btn btn-default disabled' if project_buttons) }= anchor.label
|