Fix Atom links on the wiki show page. #168
This fixes the autodiscovery link provided in the precedent commit and adds the link to the "other formats" section.
This commit is contained in:
parent
e19c7ac227
commit
9726157e3f
|
@ -46,15 +46,14 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% other_formats_links do |f| %>
|
<% other_formats_links do |f| %>
|
||||||
|
<%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :key => User.current.rss_key} %>
|
||||||
<%= f.link_to 'HTML', :url => {:id => @page.title, :version => @content.version} %>
|
<%= f.link_to 'HTML', :url => {:id => @page.title, :version => @content.version} %>
|
||||||
<%= f.link_to 'TXT', :url => {:id => @page.title, :version => @content.version} %>
|
<%= f.link_to 'TXT', :url => {:id => @page.title, :version => @content.version} %>
|
||||||
<% end if User.current.allowed_to?(:export_wiki_pages, @project) %>
|
<% end if User.current.allowed_to?(:export_wiki_pages, @project) %>
|
||||||
|
|
||||||
<% content_for :header_tags do %>
|
<% content_for :header_tags do %>
|
||||||
<%= stylesheet_link_tag 'scm' %>
|
<%= stylesheet_link_tag 'scm' %>
|
||||||
<%= auto_discovery_link_tag(:atom, :format => :atom,
|
<%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :format => 'atom', :key => User.current.rss_key) %>
|
||||||
:controller => 'projects', :action => 'activity', :project_id => @project,
|
|
||||||
:year => nil, :month => nil, :show_wiki_pages => 1, :key => User.current.rss_key) %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% content_for :sidebar do %>
|
<% content_for :sidebar do %>
|
||||||
|
|
Loading…
Reference in New Issue