From: Andy Allan Date: Thu, 19 Dec 2019 18:18:52 +0000 (+0100) Subject: Replace custom css class with bootstrap inline utility X-Git-Tag: live~3117^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/1ff7e3ac71f0e31d6c4d26673d6357a76ef957aa Replace custom css class with bootstrap inline utility This has actually been broken since the controller was renamed, but nobody noticed. --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index bd0b574e5..5abd817f8 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1496,14 +1496,6 @@ tr.turn:hover { } } -/* Rules for the trace view */ - -.trace-show { - .geo { - display: inline; - } -} - /* Rules for the new trace form */ #new_trace { diff --git a/app/views/traces/show.html.erb b/app/views/traces/show.html.erb index a1c38cab6..728b29c45 100644 --- a/app/views/traces/show.html.erb +++ b/app/views/traces/show.html.erb @@ -25,7 +25,7 @@ <%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/, '\1,') %> <%= t ".start_coordinates" %> -
<%= @trace.latitude %>; <%= @trace.longitude %>
(<%= link_to t(".map"), :controller => "site", :action => "index", :mlat => @trace.latitude, :mlon => @trace.longitude, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%= link_to t(".edit"), :controller => "site", :action => "edit", :gpx => @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>) +
<%= @trace.latitude %>; <%= @trace.longitude %>
(<%= link_to t(".map"), :controller => "site", :action => "index", :mlat => @trace.latitude, :mlon => @trace.longitude, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%= link_to t(".edit"), :controller => "site", :action => "edit", :gpx => @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>) <% end %>