-<% unless active_scaffold_config.list.messages_above_header %>
-
- <%= as_(:internal_error).html_safe %>
- <%= as_(:error_500).html_safe %>
- <%= as_(:close).html_safe %>
-
-
- <%= render 'messages' %>
-
-<% end %>
+ <%= render 'list_messages_content' unless active_scaffold_config.list.messages_above_header %>
<%= content_tag :div, class: 'filtered-message',
style: ('display:none;' unless @filtered),
data: ({search: search_params || ''} if active_scaffold_config.store_user_settings && respond_to?(:search_params)) do %>
diff --git a/app/views/active_scaffold_overrides/_list_messages_content.html.erb b/app/views/active_scaffold_overrides/_list_messages_content.html.erb
new file mode 100644
index 000000000..cb8a416b2
--- /dev/null
+++ b/app/views/active_scaffold_overrides/_list_messages_content.html.erb
@@ -0,0 +1,8 @@
+
+ <%= as_(:internal_error).html_safe %>
+ <%= as_(:error_500).html_safe %>
+ <%= as_(:close).html_safe %>
+
+
+ <%= render 'messages' %>
+
|