Commit 95fc5127 authored by Alishan Ladhani's avatar Alishan Ladhani

Show blocked status label in deployments view

Changelog: fixed
EE: true
parent d0435d23
......@@ -54,6 +54,8 @@ module EnvironmentHelper
s_('Deployment|canceled')
when 'skipped'
s_('Deployment|skipped')
when 'blocked'
s_('Deployment|blocked')
end
klass = "ci-status ci-#{status.dasherize}"
......
......@@ -11967,6 +11967,9 @@ msgstr ""
msgid "Deployment|This deployment was created using the API"
msgstr ""
msgid "Deployment|blocked"
msgstr ""
msgid "Deployment|canceled"
msgstr ""
......
......@@ -21,6 +21,16 @@ RSpec.describe EnvironmentHelper do
expect(html).to have_css('a.ci-status.ci-success')
end
end
context 'for a blocked deployment' do
subject { helper.render_deployment_status(deployment) }
let(:deployment) { build(:deployment, :blocked) }
it 'indicates the status' do
expect(subject).to have_text('blocked')
end
end
end
describe '#environments_detail_data_json' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment