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:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-03-25 00:30:10 +0300
committerJose Ivan Vargas <jvargas@gitlab.com>2017-04-03 18:38:16 +0300
commit902d2600d7e862966229a89c34a1a89136580fa4 (patch)
treeb1fd358ecfa0ed0cc2cccac25c17c2a503b32322 /app/views/projects/environments
parent8efd23015d3321824c12df1e3d3ed87674f8cd4d (diff)
Added a number input to provide a way to format the number of
desired decimals for the cpu metrics
Diffstat (limited to 'app/views/projects/environments')
-rw-r--r--app/views/projects/environments/metrics.html.haml12
1 files changed, 10 insertions, 2 deletions
diff --git a/app/views/projects/environments/metrics.html.haml b/app/views/projects/environments/metrics.html.haml
index 5627192c36c..cfff0428fbd 100644
--- a/app/views/projects/environments/metrics.html.haml
+++ b/app/views/projects/environments/metrics.html.haml
@@ -19,8 +19,16 @@
= render 'projects/deployments/actions', deployment: @environment.last_deployment
.row
.col-sm-12
- %h4
- CPU utilization
+ .row
+ .col-sm-10
+ %h4
+ CPU utilization
+ .col-sm-2.form-horizontal
+ .form-group
+ %label{ for: 'decimal_format', class:'control-label col-sm-6' }
+ Format
+ .col-sm-6
+ %input.form-control{ name: 'decimal_format', type: 'number', value: '4', 'graph-type': 'cpu_values', min: '1' }
%svg.prometheus-graph{ 'graph-type' => 'cpu_values' }
.row
.col-sm-12