From 3ac30007e27b8915c64ddcdbdc4b585ecb80716c Mon Sep 17 00:00:00 2001 From: Skud Date: Tue, 13 Nov 2012 20:48:40 +1100 Subject: [PATCH] Make member's RSS feed the first/default In at least one RSS reader (NetNewsWire) it uses the first on the list, so it makes sense to have the most contextually relevant one be listed first. --- app/views/layouts/_meta.html.haml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/_meta.html.haml b/app/views/layouts/_meta.html.haml index 065392c4f..f3e5d5d9c 100644 --- a/app/views/layouts/_meta.html.haml +++ b/app/views/layouts/_meta.html.haml @@ -3,11 +3,10 @@ - = auto_discovery_link_tag(:rss, { :controller => "updates", :format => "rss" }, { :title => "Growstuff - Recent updates from all members" }) - = auto_discovery_link_tag(:rss, { :controller => "crops", :format => "rss" }, { :title => "Growstuff - Recently added crops" }) - - if (content_for?(:member_rss_username) && content_for(:member_rss_slug)) = auto_discovery_link_tag(:rss, { :controller => "members", :action => 'show', :format => "rss", :id => yield(:member_rss_slug) }, { :title => "Growstuff - #{yield(:member_rss_username)}'s updates" }) + = auto_discovery_link_tag(:rss, { :controller => "updates", :format => "rss" }, { :title => "Growstuff - Recent updates from all members" }) + = auto_discovery_link_tag(:rss, { :controller => "crops", :format => "rss" }, { :title => "Growstuff - Recently added crops" }) %title = content_for?(:title) ? yield(:title) + " - Growstuff" : "Growstuff"