1 <% content_for :heading do %>
2 <h2><%= t '.heading', :name => h(@trace.name) %></h2>
5 <img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
7 <%= form_for @trace, :method => :post, :url => { :action => "edit" } do |f| %>
9 <div id='edit-trace-form' class='standard-form'>
11 <div class='form-row'>
12 <label class='standard-label'><%= t '.filename' %></label>
13 <p class='deemphasize'><%= @trace.name %> (<%= link_to t('.download'), trace_data_path(@trace) %>)</p>
15 <div class='form-row'>
16 <label class='standard-label'><%= t '.uploaded_at' %></label>
17 <p class='deemphasize'><%= l @trace.timestamp, :format => :friendly %></p>
19 <% if @trace.inserted? %>
20 <div class='form-row'>
21 <label class='standard-label'><%= t '.points' %></label>
22 <p class='deemphasize'><%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %></p>
24 <div class='form-row'>
25 <label class='standard-label'><%= t '.start_coord' %></label>
28 <span class="latitude"><%= @trace.latitude %></span>;
29 <span class="longitude"><%= @trace.longitude %></span>
31 (<%=link_to t('.map'), :controller => 'site', :action => 'index', :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}" %>)
33 <div class='form-row'>
34 <label class='standard-label'><%= t '.owner' %></label>
35 <p class='deemphasize'><%= link_to h(@trace.user.display_name), user_path(@trace.user) %></p>
37 <div class='form-row'>
38 <label class='standard-label'><%= t '.description' %></label>
39 <%= f.text_field :description %>
41 <div class='form-row'>
42 <label class='standard-label'><%= t '.tags' %></label>
43 <%= f.text_field :tagstring %> (<%= t '.tags_help' %>)
45 <div class='form-row'>
46 <label class='standard-label'><%= t '.visibility' %></label>
47 <%= 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 '.visibility_help_url' %>"><%= t '.visibility_help' %></a>)
53 <%= submit_tag t '.save_button' %>