Remove @midnode assign
It does not appear to be necessary and no other edit links make use of it. SiteController#edit will calculate a precise center coordinate.
This commit is contained in:
parent
569f3cbe9b
commit
60becd1050
2 changed files with 1 additions and 6 deletions
|
@ -12,6 +12,4 @@
|
|||
<hr />
|
||||
<%= link_to(t('browse.way.download_xml'), :controller => "way", :action => "read") %>
|
||||
| <%= link_to(t('browse.way.view_history'), :action => "way_history") %>
|
||||
<% unless @midnode.nil? -%>
|
||||
| <%= link_to(t('browse.way.edit'), :controller => "site", :action => "edit", :way => @way.id, :lat => @midnode.lat, :lon => @midnode.lon, :zoom => 16) %>
|
||||
<% end -%>
|
||||
| <%= link_to(t('browse.way.edit'), :controller => "site", :action => "edit", :way => @way.id) %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue