1 <h2><%= h(@title) %></h2>
3 <img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
5 <% form_for :trace, @trace do |f| %>
9 <td><%= t'trace.edit.filename' %></td>
10 <td><%= @trace.name %> (<%= link_to 'download', :controller => 'trace', :action => 'data', :id => @trace.id %>)</td>
13 <td><%= t'trace.edit.uploaded_at' %></td>
14 <td><%= @trace.timestamp %></td>
16 <% if @trace.inserted? %>
18 <td><%= t'trace.edit.points' %></td>
19 <td><%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %></td></tr>
21 <td><%= t'trace.edit.start_coord' %>Start coordinate:</td>
22 <td><div class="geo" style="display: inline"><span class="latitude"><%= @trace.latitude %></span>; <span class="longitude"><%= @trace.longitude %></span></div> (<%=link_to 'map', :controller => 'site', :action => 'index', :lat => @trace.latitude, :lon => @trace.longitude, :zoom => 14 %> / <%=link_to t('trace.edit.edit'), :controller => 'site', :action => 'edit', :lat => @trace.latitude, :lon => @trace.longitude, :gpx=> @trace.id, :zoom => 14 %>)</td>
26 <td><%= t'trace.edit.owner' %></td>
27 <td><%= link_to h(@trace.user.display_name), {:controller => 'user', :action => 'view', :display_name => @trace.user.display_name} %></td>
30 <td><%= t'trace.edit.description' %></td>
31 <td><%= f.text_field :description %></td>
35 <td><%= f.text_field :tagstring %></td>
41 <%= submit_tag 'Save Changes' %>