summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-04 13:10:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-04 13:10:16 +0000
commit49b6f9e4dd41920eb24498e1ac183a8a10916ce8 (patch)
tree2fdb60681d49e2e5769f8cd5f9b1e684a5869cd7 /app/helpers
parentc9d4d3a2be3da849343c2737b753a547d0adc875 (diff)
downloadredmine-49b6f9e4dd41920eb24498e1ac183a8a10916ce8.tar.gz
redmine-49b6f9e4dd41920eb24498e1ac183a8a10916ce8.zip
Merged r2218 to r2225 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2230 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index a935ce9ec..35d1670ae 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -147,6 +147,15 @@ module ApplicationHelper
end
content
end
+
+ # Renders flash messages
+ def render_flash_messages
+ s = ''
+ flash.each do |k,v|
+ s << content_tag('div', v, :class => "flash #{k}")
+ end
+ s
+ end
# Truncates and returns the string as a single line
def truncate_single_line(string, *args)