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/views/repositories | |
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/views/repositories')
-rw-r--r-- | app/views/repositories/diff.rhtml | 7 | ||||
-rw-r--r-- | app/views/repositories/revisions.rhtml | 7 | ||||
-rw-r--r-- | app/views/repositories/show.rhtml | 8 |
3 files changed, 10 insertions, 12 deletions
diff --git a/app/views/repositories/diff.rhtml b/app/views/repositories/diff.rhtml index 52a5d6057..86102cc52 100644 --- a/app/views/repositories/diff.rhtml +++ b/app/views/repositories/diff.rhtml @@ -15,10 +15,9 @@ <%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %> <% end -%> -<p class="other-formats"> -<%= l(:label_export_to) %> -<span><%= link_to 'Unified diff', params.merge(:format => 'diff') %></span> -</p> +<% other_formats_links do |f| %> + <%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %> +<% end %> <% html_title(with_leading_slash(@path), 'Diff') -%> diff --git a/app/views/repositories/revisions.rhtml b/app/views/repositories/revisions.rhtml index 8da7d582d..c06c204cd 100644 --- a/app/views/repositories/revisions.rhtml +++ b/app/views/repositories/revisions.rhtml @@ -16,9 +16,8 @@ <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %> <% end %> -<p class="other-formats"> -<%= l(:label_export_to) %> -<span><%= link_to 'Atom', {:format => 'atom', :key => User.current.rss_key}, :class => 'feed' %></span> -</p> +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> +<% end %> <% html_title(l(:label_revision_plural)) -%> diff --git a/app/views/repositories/show.rhtml b/app/views/repositories/show.rhtml index 280ae3bdd..943fe9485 100644 --- a/app/views/repositories/show.rhtml +++ b/app/views/repositories/show.rhtml @@ -22,10 +22,10 @@ <% content_for :header_tags do %> <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :action => 'revisions', :id => @project, :page => nil, :key => User.current.rss_key})) %> <% end %> -<p class="other-formats"> -<%= l(:label_export_to) %> -<span><%= link_to 'Atom', {:action => 'revisions', :id => @project, :format => 'atom', :key => User.current.rss_key}, :class => 'feed' %></span> -</p> + +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %> +<% end %> <% end %> <% content_for :header_tags do %> |