From b1117365d24398aa30ba7cb2cf2b7f31c41d0f01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 7 Jun 2009 02:53:24 +0000 Subject: [PATCH] Forgot that /history can also be called without a bbox (if one can't be found) I think the best thing to do here is to simply remove the RSS link, if someone wants a RSS feed without a bbox they can click the Recent Changes link and get a feed there. --- app/views/changeset/list_bbox.rhtml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/views/changeset/list_bbox.rhtml b/app/views/changeset/list_bbox.rhtml index 354f77727..ef774e378 100644 --- a/app/views/changeset/list_bbox.rhtml +++ b/app/views/changeset/list_bbox.rhtml @@ -39,8 +39,13 @@ end %>
-<%= rss_link_to :action => 'list_bbox_rss', :bbox => @bbox.join(",") %> +<% if @bbox %> + <%= rss_link_to :action => 'list_bbox_rss', :bbox => @bbox.join(",") %> +<% end %> + -<% content_for :head do %> -<%= auto_discovery_link_tag :atom, :controller => 'changeset', :action => 'list_bbox_rss', :bbox => @bbox.join(",") %> +<% if @bbox %> + <% content_for :head do %> + <%= auto_discovery_link_tag :atom, :controller => 'changeset', :action => 'list_bbox_rss', :bbox => @bbox.join(",") %> + <% end %> <% end %> -- 2.39.5