Feeds Page on Published Web

Readers of Published Webs were allowed to subscribe to the Atom feeds.
Now let them actually access the 'feeds' page, from which they may do so.
This commit is contained in:
Jacques Distler 2008-12-02 01:18:00 -06:00
parent 5d47fdff8b
commit 03e459de43
2 changed files with 4 additions and 3 deletions

View file

@ -197,7 +197,7 @@ class ApplicationController < ActionController::Base
end end
def authorization_needed? def authorization_needed?
not %w( login authenticate published atom_with_headlines atom_with_content).include?(action_name) not %w( login authenticate feeds published atom_with_headlines atom_with_content).include?(action_name)
end end
def authorized? def authorized?

View file

@ -14,7 +14,7 @@ end
<%= list_item 'All Pages', {:action => 'list'}, 'Alphabetically sorted list of pages', 'A' %> | <%= list_item 'All Pages', {:action => 'list'}, 'Alphabetically sorted list of pages', 'A' %> |
<%= list_item 'Recently Revised', {:action =>'recently_revised'}, 'Pages sorted by when they were last changed', 'U' %> | <%= list_item 'Recently Revised', {:action =>'recently_revised'}, 'Pages sorted by when they were last changed', 'U' %> |
<%= list_item 'Authors', {:action => 'authors'}, 'Who wrote what' %> | <%= list_item 'Authors', {:action => 'authors'}, 'Who wrote what' %> |
<%= list_item 'Feeds', {:action => 'feeds'}, 'Subscribe to changes by RSS' %> | <%= list_item 'Feeds', {:action => 'feeds'}, 'Subscribe to changes by Atom' %> |
<%= list_item 'Export', {:action => 'export'}, 'Download a zip with all the pages in this wiki', 'X' %> | <%= list_item 'Export', {:action => 'export'}, 'Download a zip with all the pages in this wiki', 'X' %> |
<% form_tag({ :controller => 'wiki', :action => 'search', :web => @web.address}, <% form_tag({ :controller => 'wiki', :action => 'search', :web => @web.address},
{'id' => 'navigationSearchForm', 'method' => 'get', 'accept-charset' => 'utf-8' }) do %> {'id' => 'navigationSearchForm', 'method' => 'get', 'accept-charset' => 'utf-8' }) do %>
@ -23,6 +23,7 @@ end
onblur="this.value == '' ? this.value = 'Search' : true" /></fieldset> onblur="this.value == '' ? this.value = 'Search' : true" /></fieldset>
<% end %> <% end %>
<% else %> <% else %>
<%= list_item 'Home Page', {:action => 'published', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> <%= list_item 'Home Page', {:action => 'published', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> |
<%= list_item 'Feeds', {:action => 'feeds'}, 'Subscribe to changes by Atom' %>
<% end%> <% end%>
</div> </div>