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/timelog | |
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/timelog')
-rw-r--r-- | app/views/timelog/details.rhtml | 9 | ||||
-rw-r--r-- | app/views/timelog/report.rhtml | 7 |
2 files changed, 7 insertions, 9 deletions
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 }%>
<p class="pagination"><%= pagination_links_full @entry_pages, @entry_count %></p>
-<p class="other-formats">
-<%= l(:label_export_to) %>
-<span><%= link_to 'Atom', {:issue_id => @issue, :format => 'atom', :key => User.current.rss_key}, :class => 'feed' %></span>
-<span><%= link_to 'CSV', params.merge(:format => 'csv'), :class => 'csv' %></span>
-</p>
+<% 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 @@ </tbody> </table> -<p class="other-formats"> -<%= l(:label_export_to) %> -<span><%= link_to 'CSV', params.merge({:format => 'csv'}), :class => 'csv' %></span> -</p> +<% other_formats_links do |f| %> + <%= f.link_to 'CSV', :url => params %> +<% end %> <% end %> <% end %> |