diff options
-rw-r--r-- | app/views/projects/_stat_anchor_list.html.haml | 9 | ||||
-rw-r--r-- | app/views/projects/_stat_anchor_list_item.html.haml | 7 |
2 files changed, 8 insertions, 8 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] diff --git a/app/views/projects/_stat_anchor_list_item.html.haml b/app/views/projects/_stat_anchor_list_item.html.haml deleted file mode 100644 index 404dd24599f..00000000000 --- a/app/views/projects/_stat_anchor_list_item.html.haml +++ /dev/null @@ -1,7 +0,0 @@ -%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] |