summaryrefslogtreecommitdiff
path: root/app/views/projects/_flash_messages.html.haml
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-07-18 16:09:14 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-07-26 12:47:50 +0100
commitb5bdc55d239f3e19f8fe1e59b118da05ac81a0dd (patch)
tree507f7b46386d518cdb7b77fa4048d7f4d77eec37 /app/views/projects/_flash_messages.html.haml
parent0aa8249e484ca97cfc28c7301d69077919032c08 (diff)
downloadgitlab-ce-b5bdc55d239f3e19f8fe1e59b118da05ac81a0dd.tar.gz
Move exception handling to execute
Diffstat (limited to 'app/views/projects/_flash_messages.html.haml')
-rw-r--r--app/views/projects/_flash_messages.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/projects/_flash_messages.html.haml b/app/views/projects/_flash_messages.html.haml
index 6c9d466c761..f47d84ef755 100644
--- a/app/views/projects/_flash_messages.html.haml
+++ b/app/views/projects/_flash_messages.html.haml
@@ -1,5 +1,8 @@
+- project = local_assigns.fetch(:project)
+- flash_message_container = show_new_nav? ? :new_global_flash : :flash_message
+
= content_for flash_message_container do
- = render 'deletion_failed'
+ = render partial: 'deletion_failed', locals: { project: project }
- if current_user && can?(current_user, :download_code, project)
= render 'shared/no_ssh'
= render 'shared/no_password'