X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a1b179fa384d689e6cb78c2b8d863621e7bff152..df495292376ecc893197bba7093bf2e558aad074:/app/views/traces/show.html.erb diff --git a/app/views/traces/show.html.erb b/app/views/traces/show.html.erb index 178cfbe73..cea119d54 100644 --- a/app/views/traces/show.html.erb +++ b/app/views/traces/show.html.erb @@ -2,7 +2,7 @@

<%= t '.heading', :name => h(@trace.name) %>

<% end %> -<% if STATUS != :gpx_offline %> +<% if Settings.status != "gpx_offline" %> <% if @trace.inserted %> <% else %> @@ -22,10 +22,10 @@ <% if @trace.inserted? %> <%= t '.points' %> - <%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %> + <%= @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 %> @@ -54,7 +54,7 @@

-<% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?)%> +<% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?) %>
<% if current_user == @trace.user %> <%= link_to t('.edit_trace'), edit_trace_path(@trace), :class => "button" %>