Moved error messages to top of page

This commit is contained in:
Alexander Kastius
2017-03-13 01:07:05 +01:00
parent dec45880b9
commit 3c9ecda0ad
2 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,3 @@
#flash data-message-failure=t('shared.message_failure')
#flash.fixed_error_messages data-message-failure=t('shared.message_failure')
- %w[alert danger info notice success warning].each do |severity|
p.alert.flash class="alert-#{{'alert' => 'warning', 'notice' => 'success'}.fetch(severity, severity)}" id="flash-#{severity}" = flash[severity]