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
|
# support 'bbox' param or alternatively 'minlon', 'minlat' etc
|
||||||
if params['bbox']
|
if params['bbox']
|
||||||
bbox = 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']
|
bbox = params['minlon'] + ',' + params['minlat'] + ',' + params['maxlon'] + ',' + params['maxlat']
|
||||||
|
else
|
||||||
|
redirect_to :action => 'list'
|
||||||
end
|
end
|
||||||
|
|
||||||
conditions = conditions_bbox(bbox);
|
conditions = conditions_bbox(bbox);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h1>Recent Changes</h1>
|
<h1>Recent Changes</h1>
|
||||||
|
<p>Recently closed changesets:</p>
|
||||||
|
|
||||||
Recently closed changesets:
|
|
||||||
<table id="keyvalue" cellpadding="3">
|
<table id="keyvalue" cellpadding="3">
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th>ID</th>
|
||||||
|
@ -16,4 +16,4 @@ Recently closed changesets:
|
||||||
<p>
|
<p>
|
||||||
For more changesets, select a user and view their edits, or see the editing 'history' of a specific area.
|
For more changesets, select a user and view their edits, or see the editing 'history' of a specific area.
|
||||||
</p>
|
</p>
|
||||||
<br>
|
|
||||||
|
|
|
@ -33,18 +33,6 @@ Changsets within the area:
|
||||||
|
|
||||||
<%= render :partial => 'changeset_paging_nav' %>
|
<%= render :partial => 'changeset_paging_nav' %>
|
||||||
|
|
||||||
<%
|
<% end %>
|
||||||
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
|
|
||||||
%>
|
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue