Fix atom feed urls. Refs #396
This commit is contained in:
parent
02095e62c1
commit
5efabc9d4e
|
@ -10,7 +10,7 @@
|
||||||
= csrf_meta_tag
|
= csrf_meta_tag
|
||||||
= display_meta_tags :site => APP_CONFIG['project_name'], :reverse => true, :separator => '-'
|
= display_meta_tags :site => APP_CONFIG['project_name'], :reverse => true, :separator => '-'
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
= auto_discovery_link_tag :atom, root_path(:format => 'atom', :token => current_user.authentication_token), :title => t("layout.atom_link_tag_title", :nickname => current_user.name, :app_name => APP_CONFIG['project_name'])
|
= auto_discovery_link_tag :atom, atom_activity_feeds_url(:format => 'atom', :token => current_user.authentication_token), :title => t("layout.atom_link_tag_title", :nickname => current_user.name, :app_name => APP_CONFIG['project_name'])
|
||||||
|
|
||||||
%body
|
%body
|
||||||
.wrap{:class => content_for?(:sidebar) ? 'columns' : ''}
|
.wrap{:class => content_for?(:sidebar) ? 'columns' : ''}
|
||||||
|
|
|
@ -179,15 +179,17 @@ Rosa::Application.routes.draw do
|
||||||
|
|
||||||
resources :event_logs, :only => :index
|
resources :event_logs, :only => :index
|
||||||
|
|
||||||
match '/forbidden', :to => 'pages#forbidden', :as => 'forbidden'
|
get '/forbidden' => 'pages#forbidden', :as => 'forbidden'
|
||||||
match '/terms-of-service', :to => 'pages#tos', :as => 'tos'
|
get '/terms-of-service' => 'pages#tos', :as => 'tos'
|
||||||
|
|
||||||
|
get '/activity_feeds.:format' => 'activity_feeds#index', :as => 'atom_activity_feeds', :format => /atom/
|
||||||
|
|
||||||
if APP_CONFIG['anonymous_access']
|
if APP_CONFIG['anonymous_access']
|
||||||
authenticated do
|
authenticated do
|
||||||
get "/(.:format)" => "activity_feeds#index", :as => :root
|
root :to => 'activity_feeds#index'
|
||||||
end
|
end
|
||||||
root :to => 'pages#root'
|
root :to => 'pages#root'
|
||||||
else
|
else
|
||||||
get "/(.:format)" => "activity_feeds#index", :as => :root
|
root :to => 'activity_feeds#index'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue