X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1de54dc1359ff30a8adaeba1be7f65df16890896..dc3af4040e6d7ea72a72bba7b1383d59a183f657:/app/views/trace/view.html.erb diff --git a/app/views/trace/view.html.erb b/app/views/trace/view.html.erb index 65957b45d..c1d5e0445 100644 --- a/app/views/trace/view.html.erb +++ b/app/views/trace/view.html.erb @@ -1,10 +1,12 @@ -

<%= h(@title) %>

+

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

+<% if OSM_STATUS != :gpx_offline %> <% if @trace.inserted %> <% else %> <%= t'trace.view.pending' %> <% end %> +<% end %> @@ -35,24 +37,23 @@ + + + +
<%= t'trace.view.tags' %> - <% if @trace.tags %> - <% @trace.tags.each do |tag| %> - <%= link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } %> - <% end %> + <% unless @trace.tags.empty? %> + <%= @trace.tags.collect { |tag| link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } }.join(", ") %> <% else %> - <%= t'trace.view.none' %> + <%= t'trace.view.none' %> <% end %>
<%= t'trace.view.visibility' %><%= t"trace.visibility.#{@trace.visibility}" %>


- <% unless @trace.public? %> - - <% end %> <% if @trace.user == @user %> <% end %>
<%= button_to t('trace.view.make_public'), :controller => 'trace', :action => 'make_public', :id => @trace.id %><%= button_to t('trace.view.edit_track'), :controller => 'trace', :action => 'edit', :id => @trace.id %>