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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-03 03:08:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-03 03:08:38 +0300
commitc4844aea3f98f1c9c41624a3dc0b81201533788a (patch)
tree018c08efc95817262d69684e6a94446859e2e0cb /app/helpers/environments_helper.rb
parent2164573e4531de7949b0ad9fe1d55bfb9c42765d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/environments_helper.rb')
-rw-r--r--app/helpers/environments_helper.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/helpers/environments_helper.rb b/app/helpers/environments_helper.rb
index e7b561af3da..525b01794a5 100644
--- a/app/helpers/environments_helper.rb
+++ b/app/helpers/environments_helper.rb
@@ -68,10 +68,11 @@ module EnvironmentsHelper
return {} unless environment
{
- 'current-environment-name' => environment.name,
- 'has-metrics' => "#{environment.has_metrics?}",
- 'prometheus-status' => "#{environment.prometheus_status}",
- 'environment-state' => "#{environment.state}"
+ 'metrics-dashboard-base-path' => environment_metrics_path(environment),
+ 'current-environment-name' => environment.name,
+ 'has-metrics' => "#{environment.has_metrics?}",
+ 'prometheus-status' => "#{environment.prometheus_status}",
+ 'environment-state' => "#{environment.state}"
}
end