From 1ff7e3ac71f0e31d6c4d26673d6357a76ef957aa Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Thu, 19 Dec 2019 19:18:52 +0100 Subject: [PATCH] Replace custom css class with bootstrap inline utility This has actually been broken since the controller was renamed, but nobody noticed. --- app/assets/stylesheets/common.scss | 8 -------- app/views/traces/show.html.erb | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) 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 %> -- 2.45.1