diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-29 13:53:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-29 13:53:17 +0000 |
commit | f1aa0df32666931f58b34a21d2e7acf43271fc7a (patch) | |
tree | 890de94871f94205851199549e61055ba13d241a /app/helpers | |
parent | bf76988ebc3efdf5753ee8ae275a2d24b4ab604e (diff) | |
download | redmine-f1aa0df32666931f58b34a21d2e7acf43271fc7a.tar.gz redmine-f1aa0df32666931f58b34a21d2e7acf43271fc7a.zip |
Adds an helper to render other formats download links.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2333 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6779fdef8..3f92d8d4b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -282,6 +282,12 @@ module ApplicationHelper elements = args.flatten elements.any? ? content_tag('p', args.join(' » ') + ' » ', :class => 'breadcrumb') : nil end + + def other_formats_links(&block) + concat('<p class="other-formats">' + l(:label_export_to), block.binding) + yield Redmine::Views::OtherFormatsBuilder.new(self) + concat('</p>', block.binding) + end def html_title(*args) if args.empty? |