debian-mirror-gitlab/app/views/projects/pipelines/charts.html.haml

11 lines
751 B
Text
Raw Normal View History

2020-06-23 00:09:42 +05:30
- page_title _('CI / CD Analytics')
2017-08-17 22:00:37 +05:30
2021-02-22 17:27:13 +05:30
- if Feature.enabled?(:graphql_pipeline_analytics)
#js-project-pipelines-charts-app{ data: { project_path: @project.full_path } }
- else
#js-project-pipelines-charts-app{ data: { counts: @counts, success_ratio: success_ratio(@counts),
times_chart: { labels: @charts[:pipeline_times].labels, values: @charts[:pipeline_times].pipeline_times },
last_week_chart: { labels: @charts[:week].labels, totals: @charts[:week].total, success: @charts[:week].success },
last_month_chart: { labels: @charts[:month].labels, totals: @charts[:month].total, success: @charts[:month].success },
last_year_chart: { labels: @charts[:year].labels, totals: @charts[:year].total, success: @charts[:year].success } } }