1 <% content_for :heading do %>
2 <h2><%= t 'trace.view.heading', :name => h(@trace.name) %></h2>
5 <% if STATUS != :gpx_offline %>
6 <% if @trace.inserted %>
7 <img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
9 <span class="trace_pending"><%= t'trace.view.pending' %></span>
15 <td><%= t'trace.view.filename' %></td>
16 <td><%= @trace.name %> (<%= link_to t('trace.view.download'), trace_data_path(@trace) %>)</td>
19 <td><%= t'trace.view.uploaded' %></td>
20 <td><%= l @trace.timestamp, :format => :friendly %></td>
22 <% if @trace.inserted? %>
24 <td><%= t'trace.view.points' %></td>
25 <td><%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %></td></tr>
27 <td><%= t'trace.view.start_coordinates' %></td>
28 <td><div class="geo"><span class="latitude"><%= @trace.latitude %></span>; <span class="longitude"><%= @trace.longitude %></span></div> (<%=link_to t('trace.view.map'), :controller => 'site', :action => 'index', :mlat => @trace.latitude, :mlon => @trace.longitude, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%=link_to t('trace.view.edit'), :controller => 'site', :action => 'edit', :gpx=> @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)</td>
32 <td><%= t'trace.view.owner' %></td>
33 <td><%= link_to h(@trace.user.display_name), user_path(@trace.user) %></td>
36 <td><%= t'trace.view.description' %></td>
37 <td><%= h(@trace.description) %></td>
40 <td><%= t'trace.view.tags' %></td>
42 <% unless @trace.tags.empty? %>
43 <%= raw(@trace.tags.collect { |tag| link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } }.join(", ")) %>
45 <i><%= t'trace.view.none' %></i>
50 <td><%= t'trace.view.visibility' %></td>
51 <td><%= t"trace.visibility.#{@trace.visibility}" %></td>
57 <% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?)%>
59 <%= if_user(@trace.user) do %>
60 <%= button_to t('trace.view.edit_track'), trace_edit_path(@trace) %>
62 <%= button_to t('trace.view.delete_track'), { :controller => 'trace', :action => 'delete', :id => @trace.id }, :data => { :confirm => t('trace.view.confirm_delete') } %>