diff options
Diffstat (limited to 'app/views/projects/mattermosts')
-rw-r--r-- | app/views/projects/mattermosts/_no_teams.html.haml | 6 | ||||
-rw-r--r-- | app/views/projects/mattermosts/new.html.haml | 26 |
2 files changed, 18 insertions, 14 deletions
diff --git a/app/views/projects/mattermosts/_no_teams.html.haml b/app/views/projects/mattermosts/_no_teams.html.haml index 3d901c6f59b..1f008496a34 100644 --- a/app/views/projects/mattermosts/_no_teams.html.haml +++ b/app/views/projects/mattermosts/_no_teams.html.haml @@ -1,9 +1,3 @@ -- if @teams_error_message - = content_for :flash_message do - = render Pajamas::AlertComponent.new(variant: :danger) do - .gl-alert-body - = @teams_error_message - %p You aren’t a member of any team on the Mattermost instance at %strong= Gitlab.config.mattermost.host diff --git a/app/views/projects/mattermosts/new.html.haml b/app/views/projects/mattermosts/new.html.haml index 9e293d07cb7..8254198bd41 100644 --- a/app/views/projects/mattermosts/new.html.haml +++ b/app/views/projects/mattermosts/new.html.haml @@ -1,10 +1,20 @@ -- @body_class = 'card-content' +- add_to_breadcrumbs _('Integrations'), scoped_integrations_path(project: @project, group: @group) +- add_to_breadcrumbs @integration.title, scoped_edit_integration_path(@integration, project: @project, group: @group) +- breadcrumb_title _('New') +- page_title @integration.title, _('Integrations') +- @content_class = 'limit-container-width' unless fluid_layout -.service-installation - .inline.float-right +- if @teams_error_message + = render Pajamas::AlertComponent.new(variant: :danger) do |c| + = c.body do + = @teams_error_message + +%h3 + Install Mattermost Command + .gl-float-right = custom_icon('mattermost_logo', size: 48) - %h3 Install Mattermost Command - - if @teams.empty? - = render 'no_teams' - - else - = render 'team_selection' + +- if @teams.empty? + = render 'no_teams' +- else + = render 'team_selection' |