From e270366d844d27ba55b96fb589b8505502c76a08 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Thu, 12 Jul 2018 12:22:11 +0200 Subject: Rename environments stop action method This makes it more explicit that an environment is not a stop action, but instead is merely contains a stop action. --- app/views/projects/environments/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/projects/environments/show.html.haml b/app/views/projects/environments/show.html.haml index a33bc9d4ce6..c7890b37381 100644 --- a/app/views/projects/environments/show.html.haml +++ b/app/views/projects/environments/show.html.haml @@ -16,7 +16,7 @@ ? .modal-body %p= s_('Environments|Are you sure you want to stop this environment?') - - unless @environment.stop_action? + - unless @environment.stop_action_available? .warning_message %p= s_('Environments|Note that this action will stop the environment, but it will %{emphasis_start}not%{emphasis_end} have an effect on any existing deployment due to no “stop environment action” being defined in the %{ci_config_link_start}.gitlab-ci.yml%{ci_config_link_end} file.').html_safe % { emphasis_start: ''.html_safe, emphasis_end: ''.html_safe, -- cgit v1.2.1