]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/changeset/list_bbox.rhtml
Merge api06 branch to trunk.
[rails.git] / app / views / changeset / list_bbox.rhtml
index f1d8633f04e7316aeedbdb0d0e62aa3978991633..e1cf9aedb36b87f7883467fd3f7586b702b1dae7 100644 (file)
@@ -1,16 +1,16 @@
 <h1>History</h1>
 <%
 if @bbox!=nil
-       lon1 = @bbox[0] 
-       lat1 = @bbox[1] 
-       lon2 = @bbox[2]
-       lat2 = @bbox[3] 
+       minlon = @bbox[0] 
+       minlat = @bbox[1] 
+       maxlon = @bbox[2]
+       maxlat = @bbox[3] 
 
        %>
 <p>
-Changsets within the area: 
-(<a href='/?lat=<%= lat1 %>&lon=<%= lon1 %>&zoom=14'><%= format("%0.3f",lat1) -%>,<%= format("%0.3f",lon1) -%></a>) to 
-(<a href='/?lat=<%= lat2 %>&lon=<%= lon2 %>&zoom=14'><%= format("%0.3f",lat2) -%>,<%= format("%0.3f",lon2) -%></a>)   
+Changesets within the area: 
+      (<a href='/?minlon=<%= minlon %>&minlat=<%= minlat %>&maxlon=<%= maxlon %>&maxlat=<%= maxlat %>&box=yes' title='show area box'><%= format("%0.3f",minlon) -%>,<%= format("%0.3f",minlat) -%>,<%= format("%0.3f",maxlon) -%>,<%= format("%0.3f",maxlat) -%></a>) 
+
 </p>
 
 <%     if @edits.nil? or @edits.empty? %>
@@ -33,6 +33,8 @@ Changsets within the area:
 
 <%= render :partial => 'changeset_paging_nav' %>
 
+<p>For all changes everywhere see <%=  link_to("Recent Changes", :controller => "browse", :action => "changesets") %> </p>
+
 <%
        end
 
@@ -41,10 +43,11 @@ else
 %>
 
 <p>No area specified</p>
-<p>First use the <a href="/" title="view the map">view tab</a> to pan and zoom to an area of interest, then click the history tab</p>
+<p>First use the <a href="/" title="view the map">view tab</a> to pan and zoom to an area of interest, then click the history tab.</p>
+<p>Alternatively view all <%=  link_to("recent changes", :controller => "browse", :action => "changesets") %> </p>
 
 <%
 end
 %>
 <br>
-<br>
+