]> git.openstreetmap.org Git - rails.git/commitdiff
Rather than referring how to view a bbox history, just redirect to the global history.
authorThomas Wood <grand.edgemaster@gmail.com>
Mon, 23 Mar 2009 19:56:01 +0000 (19:56 +0000)
committerThomas Wood <grand.edgemaster@gmail.com>
Mon, 23 Mar 2009 19:56:01 +0000 (19:56 +0000)
app/controllers/changeset_controller.rb
app/views/changeset/list.rhtml
app/views/changeset/list_bbox.rhtml

index b905ae6632852127f773965a242d2ebfbfeef753..9b09549d0f91def074c5e6bc9065c91cd43072c3 100644 (file)
@@ -348,8 +348,10 @@ class ChangesetController < ApplicationController
     # support 'bbox' param or alternatively 'minlon', 'minlat' etc       
     if params['bbox']
        bbox = params['bbox']
     # 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']
        bbox = params['minlon'] + ',' + params['minlat'] + ',' + params['maxlon'] + ',' + params['maxlat']
+    else
+      redirect_to :action => 'list'
     end
        
     conditions = conditions_bbox(bbox);
     end
        
     conditions = conditions_bbox(bbox);
index 0edd951ce8c51810f1e126f8766b1464b204b6f4..aa0d92758a08278569d8fc497cedcbef66e19676 100644 (file)
@@ -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">
   <tr>
     <th>ID</th>
 <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>
 <p>
 For more changesets, select a user and view their edits, or see the editing 'history' of a specific area.
 </p>
-<br>   
+
index f1d8633f04e7316aeedbdb0d0e62aa3978991633..4f90d185bec245fd469d020b91c84afdb27db535 100644 (file)
@@ -33,18 +33,6 @@ Changsets within the area:
 
 <%= render :partial => 'changeset_paging_nav' %>
 
 
 <%= 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>
 <br>
 <br>