Rather than referring how to view a bbox history, just redirect to the global history.
This commit is contained in:
parent
7d3a5899c9
commit
8fb97a3337
3 changed files with 6 additions and 16 deletions
|
@ -348,8 +348,10 @@ class ChangesetController < ApplicationController
|
|||
# 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);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<h1>Recent Changes</h1>
|
||||
<p>Recently closed changesets:</p>
|
||||
|
||||
Recently closed changesets:
|
||||
<table id="keyvalue" cellpadding="3">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
|
@ -16,4 +16,4 @@ Recently closed changesets:
|
|||
<p>
|
||||
For more changesets, select a user and view their edits, or see the editing 'history' of a specific area.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
|
|
|
@ -33,18 +33,6 @@ Changsets within the area:
|
|||
|
||||
<%= 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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue