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/wiki | |
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/wiki')
-rw-r--r-- | app/views/wiki/show.rhtml | 9 | ||||
-rw-r--r-- | app/views/wiki/special_date_index.rhtml | 9 | ||||
-rw-r--r-- | app/views/wiki/special_page_index.rhtml | 9 |
3 files changed, 12 insertions, 15 deletions
diff --git a/app/views/wiki/show.rhtml b/app/views/wiki/show.rhtml index 1cb67dfd4..7abfd8a28 100644 --- a/app/views/wiki/show.rhtml +++ b/app/views/wiki/show.rhtml @@ -42,11 +42,10 @@ <% end %> <% end %> -<p class="other-formats"> -<%= l(:label_export_to) %> -<span><%= link_to 'HTML', {:page => @page.title, :export => 'html', :version => @content.version}, :class => 'html' %></span> -<span><%= link_to 'TXT', {:page => @page.title, :export => 'txt', :version => @content.version}, :class => 'text' %></span> -</p> +<% other_formats_links do |f| %> + <%= f.link_to 'HTML', :url => {:page => @page.title, :version => @content.version} %> + <%= f.link_to 'TXT', :url => {:page => @page.title, :version => @content.version} %> +<% end %> <% content_for :header_tags do %> <%= stylesheet_link_tag 'scm' %> diff --git a/app/views/wiki/special_date_index.rhtml b/app/views/wiki/special_date_index.rhtml index 6717ebc85..008f89293 100644 --- a/app/views/wiki/special_date_index.rhtml +++ b/app/views/wiki/special_date_index.rhtml @@ -18,11 +18,10 @@ <% end %> <% unless @pages.empty? %> -<p class="other-formats"> -<%= l(:label_export_to) %> -<span><%= link_to 'Atom', {:controller => 'projects', :action => 'activity', :id => @project, :show_wiki_pages => 1, :format => 'atom', :key => User.current.rss_key}, :class => 'feed' %></span> -<span><%= link_to 'HTML', {:action => 'special', :page => 'export'}, :class => 'html' %></span> -</p> +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:controller => 'projects', :action => 'activity', :id => @project, :show_wiki_pages => 1, :key => User.current.rss_key} %> + <%= f.link_to 'HTML', :url => {:action => 'special', :page => 'export'} %> +<% end %> <% end %> <% content_for :header_tags do %> diff --git a/app/views/wiki/special_page_index.rhtml b/app/views/wiki/special_page_index.rhtml index 72b395ef7..5547f5b1c 100644 --- a/app/views/wiki/special_page_index.rhtml +++ b/app/views/wiki/special_page_index.rhtml @@ -11,11 +11,10 @@ <% end %> <% unless @pages.empty? %> -<p class="other-formats"> -<%= l(:label_export_to) %> -<span><%= link_to 'Atom', {:controller => 'projects', :action => 'activity', :id => @project, :show_wiki_pages => 1, :format => 'atom', :key => User.current.rss_key}, :class => 'feed' %></span> -<span><%= link_to 'HTML', {:action => 'special', :page => 'export'} %></span> -</p> +<% other_formats_links do |f| %> + <%= f.link_to 'Atom', :url => {:controller => 'projects', :action => 'activity', :id => @project, :show_wiki_pages => 1, :key => User.current.rss_key} %> + <%= f.link_to 'HTML', :url => {:action => 'special', :page => 'export'} %> +<% end %> <% end %> <% content_for :header_tags do %> |