Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_stat_anchor_list.html.haml « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a115b65938ba5ae1b8da961255288b16b64e1fdb (plain)
1
2
3
4
5
6
7
8
- anchors = local_assigns.fetch(:anchors, [])

- return unless anchors.any?
%ul.nav
  - anchors.each do |anchor|
    %li
      = link_to_if anchor.link, anchor.label, anchor.link, class: anchor.enabled ? 'stat-link' : "btn btn-#{anchor.class_modifier || 'missing'}" do
        %span.stat-text= anchor.label