diff options
Diffstat (limited to 'app/views/projects/_stat_anchor_list.html.haml')
-rw-r--r-- | app/views/projects/_stat_anchor_list.html.haml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/projects/_stat_anchor_list.html.haml b/app/views/projects/_stat_anchor_list.html.haml index 9ca51f8d68c..1f237c645bc 100644 --- a/app/views/projects/_stat_anchor_list.html.haml +++ b/app/views/projects/_stat_anchor_list.html.haml @@ -2,4 +2,11 @@ - if anchors.size > 0 %ul.nav - = render partial: 'stat_anchor_list_item', collection: anchors, as: :anchor + - anchors.each do |anchor| + %li + - if anchor[:link] + = link_to anchor[:link], class: anchor[:enabled] ? 'stat-link' : "btn btn-#{anchor[:class_modifier] || 'missing'}" do + = anchor[:label] + - else + %span.stat-text + = anchor[:label] |