From: Ævar Arnfjörð Bjarmason Date: Sun, 7 Jun 2009 02:53:24 +0000 (+0000) Subject: Forgot that /history can also be called without a bbox (if one can't be found) X-Git-Tag: live~7108 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b1117365d24398aa30ba7cb2cf2b7f31c41d0f01 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. --- 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 %>