X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d0089f0ce81ef10ca7ed43969d83d8b77014fa11..3b237dc3dabda181ed68dc587b1befc678a03706:/app/views/traces/show.html.erb?ds=sidebyside diff --git a/app/views/traces/show.html.erb b/app/views/traces/show.html.erb index b052d0337..111c71f36 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 %> @@ -40,7 +40,7 @@ <%= t '.tags' %> <% unless @trace.tags.empty? %> - <%= raw(@trace.tags.collect { |tag| link_to tag.tag, { :controller => 'traces', :action => 'index', :tag => tag.tag, :id => nil } }.join(", ")) %> + <%= raw(@trace.tags.collect { |tag| link_to tag.tag, :controller => 'traces', :action => 'index', :tag => tag.tag, :id => nil }.join(", ")) %> <% else %> <%= t '.none' %> <% 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 %>