From f1aa0df32666931f58b34a21d2e7acf43271fc7a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 29 Jan 2009 13:53:17 +0000 Subject: 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 --- app/views/timelog/details.rhtml | 9 ++++----- app/views/timelog/report.rhtml | 7 +++---- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'app/views/timelog') diff --git a/app/views/timelog/details.rhtml b/app/views/timelog/details.rhtml index b2aeb86bb..d78b384fd 100644 --- a/app/views/timelog/details.rhtml +++ b/app/views/timelog/details.rhtml @@ -22,11 +22,10 @@ already in the URI %> <%= render :partial => 'list', :locals => { :entries => @entries }%>

<%= pagination_links_full @entry_pages, @entry_count %>

-

-<%= l(:label_export_to) %> -<%= link_to 'Atom', {:issue_id => @issue, :format => 'atom', :key => User.current.rss_key}, :class => 'feed' %> -<%= link_to 'CSV', params.merge(:format => 'csv'), :class => 'csv' %> -

+<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => params.merge({:issue_id => @issue, :key => User.current.rss_key}) %> + <%= f.link_to 'CSV', :url => params %> +<% end %> <% end %> <% html_title l(:label_spent_time), l(:label_details) %> diff --git a/app/views/timelog/report.rhtml b/app/views/timelog/report.rhtml index ad7d79459..f41a1b51a 100644 --- a/app/views/timelog/report.rhtml +++ b/app/views/timelog/report.rhtml @@ -65,10 +65,9 @@ -

-<%= l(:label_export_to) %> -<%= link_to 'CSV', params.merge({:format => 'csv'}), :class => 'csv' %> -

+<% other_formats_links do |f| %> + <%= f.link_to 'CSV', :url => params %> +<% end %> <% end %> <% end %> -- cgit v1.2.3