X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8fb97a3337a8dbf688edc78dc37862c8e02d8cd9..5e10a7d48bfc8ebe8886c6cf49043c95bb84d190:/app/views/changeset/list_bbox.rhtml diff --git a/app/views/changeset/list_bbox.rhtml b/app/views/changeset/list_bbox.rhtml index 4f90d185b..e1cf9aedb 100644 --- a/app/views/changeset/list_bbox.rhtml +++ b/app/views/changeset/list_bbox.rhtml @@ -1,16 +1,16 @@
-Changsets within the area: -(<%= format("%0.3f",lat1) -%>,<%= format("%0.3f",lon1) -%>) to -(<%= format("%0.3f",lat2) -%>,<%= format("%0.3f",lon2) -%>) +Changesets within the area: + (<%= format("%0.3f",minlon) -%>,<%= format("%0.3f",minlat) -%>,<%= format("%0.3f",maxlon) -%>,<%= format("%0.3f",maxlat) -%>) +
<% if @edits.nil? or @edits.empty? %> @@ -33,6 +33,21 @@ Changsets within the area: <%= render :partial => 'changeset_paging_nav' %> -<% end %> -For all changes everywhere see <%= link_to("Recent Changes", :controller => "browse", :action => "changesets") %>
+ +<% + end + +else + #bbox is nil. happens if the user surfs to this page directly. +%> + +No area specified
+First use the view tab to pan and zoom to an area of interest, then click the history tab.
+Alternatively view all <%= link_to("recent changes", :controller => "browse", :action => "changesets") %>
+ +<% +end +%>