X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2f9291ba5764fe104264ae7e3b6a361e11212e8b..152e3110403c7ac2568298069123e9015d42d8b3:/app/views/traces/edit.html.erb?ds=sidebyside diff --git a/app/views/traces/edit.html.erb b/app/views/traces/edit.html.erb index b5b4a84d6..e3771bac0 100644 --- a/app/views/traces/edit.html.erb +++ b/app/views/traces/edit.html.erb @@ -1,55 +1,55 @@ <% content_for :heading do %> -

<%= t '.heading', :name => h(@trace.name) %>

+

<%= t ".heading", :name => @trace.name %>

<% end %> - + "picture", :id => @trace.id, :display_name => @trace.user.display_name %>"> <%= form_for @trace do |f| %>
-
- -

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

+
+ +

<%= @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,') %>

+
+ +

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

-
- +
+
<%= @trace.latitude %>; <%= @trace.longitude %>
- (<%=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}" %>) + (<%= 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) %>

+
+ +

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

-
- +
+ <%= f.text_field :description %>
-
- - <%= f.text_field :tagstring %> (<%= t '.tags_help' %>) +
+ + <%= 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' %>) +
+ + <%= 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" %>)
-<%= submit_tag t '.save_button' %> +<%= f.submit %> <% end %>