summaryrefslogtreecommitdiff
path: root/app/views/projects/graphs/charts.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/graphs/charts.html.haml')
-rw-r--r--app/views/projects/graphs/charts.html.haml15
1 files changed, 1 insertions, 14 deletions
diff --git a/app/views/projects/graphs/charts.html.haml b/app/views/projects/graphs/charts.html.haml
index ca0307aed60..04d400688d4 100644
--- a/app/views/projects/graphs/charts.html.haml
+++ b/app/views/projects/graphs/charts.html.haml
@@ -15,20 +15,7 @@
- if defined?(@daily_coverage_options)
.repo-charts.my-5
- .sub-header-block.border-top
- .d-flex.justify-content-between.align-items-center
- %h4.sub-header.m-0
- - start_date = capture do
- #{@daily_coverage_options[:base_params][:start_date].strftime('%b %d')}
- - end_date = capture do
- #{@daily_coverage_options[:base_params][:end_date].strftime('%b %d')}
- = (_("Code coverage statistics for %{ref} %{start_date} - %{end_date}") % { ref: "<strong>#{h @ref}</strong>", start_date: start_date, end_date: end_date }).html_safe
- - download_path = capture do
- #{@daily_coverage_options[:download_path]}
- %a.btn.gl-button.btn-default.btn-sm{ href: "#{download_path}?#{@daily_coverage_options[:base_params].to_query}" }
- %small
- = _("Download raw data (.csv)")
- #js-code-coverage-chart{ data: { graph_endpoint: "#{@daily_coverage_options[:graph_api_path]}?#{@daily_coverage_options[:base_params].to_query}" } }
+ #js-code-coverage-chart{ data: project_coverage_chart_data_attributes(@daily_coverage_options, @ref) }
.repo-charts
.sub-header-block.border-top