X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2c67c079ac39cefd3b096524fc0b7364b0eb21d7..bd12ec7a8bfdc244756272a2f4fec1f645a6d852:/app/views/browse/way.html.erb diff --git a/app/views/browse/way.html.erb b/app/views/browse/way.html.erb index 41341fef8..167ac6959 100644 --- a/app/views/browse/way.html.erb +++ b/app/views/browse/way.html.erb @@ -12,6 +12,6 @@
<%= 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 %> +<% 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 -%>