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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2018-02-20 18:36:57 +0300
committerEric Eastwood <contact@ericeastwood.com>2018-02-20 18:37:00 +0300
commitccc858a5dfdb446d9648db2449d3ee3ef7a2be59 (patch)
treebe27a2cdf57bb91d196ed91a34e1892329239c47 /app/views/projects/_stat_anchor_list.html.haml
parentb866cba7f57025dad9e0c8dc93716d22baa87206 (diff)
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
Diffstat (limited to 'app/views/projects/_stat_anchor_list.html.haml')
-rw-r--r--app/views/projects/_stat_anchor_list.html.haml9
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]