diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-04 13:10:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-04 13:10:16 +0000 |
commit | 49b6f9e4dd41920eb24498e1ac183a8a10916ce8 (patch) | |
tree | 2fdb60681d49e2e5769f8cd5f9b1e684a5869cd7 /app/helpers | |
parent | c9d4d3a2be3da849343c2737b753a547d0adc875 (diff) | |
download | redmine-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.rb | 9 |
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) |