# support 'bbox' param or alternatively 'minlon', 'minlat' etc
if params['bbox']
bbox = params['bbox']
- elsif params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat']
+ elsif params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat']
bbox = params['minlon'] + ',' + params['minlat'] + ',' + params['maxlon'] + ',' + params['maxlat']
+ else
+ redirect_to :action => 'list'
end
conditions = conditions_bbox(bbox);
<h1>Recent Changes</h1>
+<p>Recently closed changesets:</p>
-Recently closed changesets:
<table id="keyvalue" cellpadding="3">
<tr>
<th>ID</th>
<p>
For more changesets, select a user and view their edits, or see the editing 'history' of a specific area.
</p>
-<br>
+
<%= render :partial => 'changeset_paging_nav' %>
-<%
- end
-
-else
- #bbox is nil. happens if the user surfs to this page directly.
-%>
-
-<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>
-
-<%
-end
-%>
+<% end %>
<br>
<br>