summaryrefslogtreecommitdiff
path: root/app/views/projects/mattermosts/_no_teams.html.haml
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-01-26 09:16:07 +0100
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-01-30 11:01:36 +0100
commitb3de65bcc5627915511182a9ac9857b1fef14853 (patch)
tree537c79d5c1f03b1306556b3abf20a5bb3fe565dc /app/views/projects/mattermosts/_no_teams.html.haml
parent8bcc911b9bc9fcb2179860c5a98d8a1ad3ec34b0 (diff)
downloadgitlab-ce-b3de65bcc5627915511182a9ac9857b1fef14853.tar.gz
Update #list_teams to propagate errors
Diffstat (limited to 'app/views/projects/mattermosts/_no_teams.html.haml')
-rw-r--r--app/views/projects/mattermosts/_no_teams.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/mattermosts/_no_teams.html.haml b/app/views/projects/mattermosts/_no_teams.html.haml
index 1bb3642431e..aac74a25b75 100644
--- a/app/views/projects/mattermosts/_no_teams.html.haml
+++ b/app/views/projects/mattermosts/_no_teams.html.haml
@@ -1,5 +1,6 @@
-= content_for :flash_message do
- .alert.alert-danger= @teams if @teams.is_a?(String)
+- if @teams_error_message
+ = content_for :flash_message do
+ .alert.alert-danger= @teams_error_message
%p
You aren’t a member of any team on the Mattermost instance at