X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d0089f0ce81ef10ca7ed43969d83d8b77014fa11..bbd44f8099bc24bc514a04f98aa29102fff4963f:/app/views/traces/show.html.erb diff --git a/app/views/traces/show.html.erb b/app/views/traces/show.html.erb index b052d0337..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,11 +54,11 @@

-<% 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_track'), edit_trace_path(@trace), :class => "button" %> + <%= link_to t('.edit_trace'), edit_trace_path(@trace), :class => "button" %> <% end %> - <%= button_to t('.delete_track'), { :controller => 'traces', :action => 'delete', :id => @trace.id }, :data => { :confirm => t('.confirm_delete') } %> + <%= button_to t('.delete_trace'), { :controller => 'traces', :action => 'delete', :id => @trace.id }, :data => { :confirm => t('.confirm_delete') } %>
<% end %>