summaryrefslogtreecommitdiff
path: root/app/views/projects/pipelines/charts/_pipeline_times.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/pipelines/charts/_pipeline_times.haml')
-rw-r--r--app/views/projects/pipelines/charts/_pipeline_times.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/projects/pipelines/charts/_pipeline_times.haml b/app/views/projects/pipelines/charts/_pipeline_times.haml
new file mode 100644
index 00000000000..a5dbd1b1532
--- /dev/null
+++ b/app/views/projects/pipelines/charts/_pipeline_times.haml
@@ -0,0 +1,10 @@
+- content_for :page_specific_javascripts do
+ = webpack_bundle_tag('pipelines_times')
+
+%div
+ %p.light
+ = _("Commit duration in minutes for last 30 commits")
+
+ %canvas#build_timesChart{ height: 200 }
+
+%script#pipelinesTimesChartsData{ type: "application/json" }= { :labels => @charts[:pipeline_times].labels, :values => @charts[:pipeline_times].pipeline_times }.to_json.html_safe