From f98a4ee42c18af7eea81b7d7027427cf5aa4a0c5 Mon Sep 17 00:00:00 2001 From: MrZYX Date: Sat, 2 Apr 2011 17:35:23 +0200 Subject: [PATCH] correct links to atom feed --- app/views/layouts/application.html.haml | 4 ++-- app/views/shared/_public_explain.haml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 2c893fe8f..f59d9832b 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -71,9 +71,9 @@ - if @person - %link{:rel => "alternate", :href => "#{@person.public_url}", :type => "application/atom+xml", :title => "#{t('.public_feed', :name => @person.name)}"} + %link{:rel => "alternate", :href => "#{@person.public_url}.atom", :type => "application/atom+xml", :title => "#{t('.public_feed', :name => @person.name)}"} - elsif current_user - %link{:rel => "alternate", :href => "#{current_user.public_url}", :type => "application/atom+xml", :title => "#{t('.public_feed', :name => current_user.name)}"} + %link{:rel => "alternate", :href => "#{current_user.public_url}.atom", :type => "application/atom+xml", :title => "#{t('.public_feed', :name => current_user.name)}"} %body{:class => "#{yield(:body_class)}"} - unless @landing_page diff --git a/app/views/shared/_public_explain.haml b/app/views/shared/_public_explain.haml index 079a8d40b..7b5480a28 100644 --- a/app/views/shared/_public_explain.haml +++ b/app/views/shared/_public_explain.haml @@ -9,7 +9,7 @@ =t('.outside') %br %br - = link_to "RSS", current_user.public_url + = link_to "RSS", "#{current_user.public_url}.atom" %br - if current_user.services - for service in current_user.services