X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3af16f6337b52546297e7e09a1aba9b0e1df7e15..ff7ddb6b86bf918a9418af7382836b41594d45e4:/app/views/traces/edit.html.erb diff --git a/app/views/traces/edit.html.erb b/app/views/traces/edit.html.erb index c17660db3..6583e32f1 100644 --- a/app/views/traces/edit.html.erb +++ b/app/views/traces/edit.html.erb @@ -8,20 +8,20 @@
-
+

<%= @trace.name %> (<%= link_to t(".download"), trace_data_path(@trace) %>)

-
+

<%= l @trace.timestamp, :format => :friendly %>

<% if @trace.inserted? %> -
+

<%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/, '\1,') %>

-
+
@@ -30,19 +30,19 @@
(<%= 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}" %>) <% end %> -
+

<%= link_to h(@trace.user.display_name), user_path(@trace.user) %>

-
+
<%= f.text_field :description %>
-
+
<%= f.text_field :tagstring %> (<%= t ".tags_help" %>)
-
+
<%= f.select :visibility, [[t("traces.visibility.private"), "private"], [t("traces.visibility.public"), "public"], [t("traces.visibility.trackable"), "trackable"], [t("traces.visibility.identifiable"), "identifiable"]] %> ("><%= t ".visibility_help" %>)
@@ -50,6 +50,6 @@
-<%= submit_tag t ".save_button" %> +<%= f.submit %> <% end %>