1 <h2><%= t 'trace.edit.heading', :name => h(@trace.name) %></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 t('trace.edit.download'), :controller => 'trace', :action => 'data', :id => @trace.id %>)</td>
13 <td><%= t'trace.edit.uploaded_at' %></td>
14 <td><%= l @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' %></td>
22 <td><div class="geo" style="display: inline"><span class="latitude"><%= @trace.latitude %></span>; <span class="longitude"><%= @trace.longitude %></span></div> (<%=link_to t('trace.edit.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, :size => 50 %></td>
34 <td><%= t'trace.edit.tags' %></td>
35 <td><%= f.text_field :tagstring, :size => 50 %> (<%= t'trace.edit.tags_help' %>)</td>
38 <td><%= t'trace.edit.visibility' %></td>
39 <td><%= f.select :visibility, [[t('trace.visibility.private'),"private"],[t('trace.visibility.public'),"public"],[t('trace.visibility.trackable'),"trackable"],[t('trace.visibility.identifiable'),"identifiable"]] %> (<a href="<%= t'trace.edit.visibility_help_url' %>"><%= t'trace.edit.visibility_help' %></a>)</td>
45 <%= submit_tag t'trace.edit.save_button' %>