Commit 5eba9b88 authored by Valery Sizov's avatar Valery Sizov

[Slack application] Show Slack button when there is team added

parent bf495f36
...@@ -13,5 +13,4 @@ ...@@ -13,5 +13,4 @@
by entering by entering
%kbd.inline /gitlab help %kbd.inline /gitlab help
- unless @service.template? - unless @service.template?
%p To set up this service press "Add to Slack"
= render "projects/services/#{@service.to_param}/slack_integration_form" = render "projects/services/#{@service.to_param}/slack_integration_form"
= render "projects/services/#{@service.to_param}/slack_button"
- slack_integration = @service.slack_integration - slack_integration = @service.slack_integration
- if slack_integration - if slack_integration
%table.table %table.table
...@@ -26,3 +25,6 @@ ...@@ -26,3 +25,6 @@
- project = @service.project - project = @service.project
= link_to 'Edit', edit_project_settings_slack_path(project), class: 'btn btn-sm' = link_to 'Edit', edit_project_settings_slack_path(project), class: 'btn btn-sm'
= link_to 'Remove', project_settings_slack_path(project), method: :delete, class: 'btn btn-danger btn-sm', data: { confirm: 'Are you sure?' } = link_to 'Remove', project_settings_slack_path(project), method: :delete, class: 'btn btn-danger btn-sm', data: { confirm: 'Are you sure?' }
- else
%p To set up this service press "Add to Slack"
= render "projects/services/#{@service.to_param}/slack_button"
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