summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2018-02-20 09:36:57 -0600
committerEric Eastwood <contact@ericeastwood.com>2018-02-20 09:37:00 -0600
commitccc858a5dfdb446d9648db2449d3ee3ef7a2be59 (patch)
treebe27a2cdf57bb91d196ed91a34e1892329239c47
parentb866cba7f57025dad9e0c8dc93716d22baa87206 (diff)
downloadgitlab-ce-ccc858a5dfdb446d9648db2449d3ee3ef7a2be59.tar.gz
Switch back to using a single partial
See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16900#note_59334967 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16900#note_59714883
-rw-r--r--app/views/projects/_stat_anchor_list.html.haml9
-rw-r--r--app/views/projects/_stat_anchor_list_item.html.haml7
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]