diff --git a/app_helpers.rb b/app_helpers.rb index de9eea04..eb03284d 100644 --- a/app_helpers.rb +++ b/app_helpers.rb @@ -110,3 +110,7 @@ end def sanitize_comment(text) Rinku.auto_link Sanitize.fragment(text), :all, 'target="_blank" rel="nofollow"' end + +def flash_display(opts={}) + erb :'_flash', layout: false, locals: {opts: opts} +end diff --git a/views/admin.erb b/views/admin.erb index 5efcd038..e8962cb0 100644 --- a/views/admin.erb +++ b/views/admin.erb @@ -14,13 +14,7 @@ - <% if flash.keys.length > 0 %> -
<%== @error %>
-- <% flash.keys.each do |key| %> - <%== flash[key] %> - <% end %> -
-