1 <% content_for :heading do %>
2 <h2><%= t ".heading", :name => @trace.name %></h2>
5 <% if Settings.status != "gpx_offline" %>
6 <% if @trace.inserted %>
7 <img src="<%= url_for :controller => "traces", :action => "picture", :id => @trace.id, :display_name => @trace.user.display_name %>">
9 <span class="text-danger"><%= t ".pending" %></span>
13 <table class="table table-borderless table-sm">
15 <td><%= t ".filename" %></td>
16 <td><%= @trace.name %> (<%= link_to t(".download"), trace_data_path(@trace) %>)</td>
19 <td><%= t ".uploaded" %></td>
20 <td><%= l @trace.timestamp, :format => :friendly %></td>
22 <% if @trace.inserted? %>
24 <td><%= t ".points" %></td>
25 <td><%= number_with_delimiter(@trace.size) %></td></tr>
27 <td><%= t ".start_coordinates" %></td>
29 <div class="d-inline">
30 <%= t ".coordinates_html",
31 :latitude => tag.span(number_with_delimiter(@trace.latitude), :class => "latitude"),
32 :longitude => tag.span(number_with_delimiter(@trace.longitude), :class => "longitude") %>
34 (<%= 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}" %>)</td>
38 <td><%= t ".owner" %></td>
39 <td><%= link_to @trace.user.display_name, user_path(@trace.user) %></td>
42 <td><%= t ".description" %></td>
43 <td><%= @trace.description %></td>
46 <td><%= t ".tags" %></td>
48 <% unless @trace.tags.empty? %>
49 <%= safe_join(@trace.tags.collect { |tag| link_to tag.tag, :controller => "traces", :action => "index", :tag => tag.tag, :id => nil }, ", ") %>
51 <i><%= t ".none" %></i>
56 <td><%= t ".visibility" %></td>
57 <td><%= t "traces.visibility.#{@trace.visibility}" %></td>
63 <% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?) %>
65 <% if current_user == @trace.user %>
66 <%= link_to t(".edit_trace"), edit_trace_path(@trace), :class => "btn btn-outline-primary" %>
68 <%= link_to t(".delete_trace"), { :controller => "traces", :action => "destroy", :id => @trace.id }, { :method => :delete, :class => "btn btn-outline-danger", :data => { :confirm => t(".confirm_delete") } } %>