X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d877cd1ebc3a1949d458de7c110ae2e7293fd445..6c0366d2a2407184715ab97bc01410040b9612f5:/app/views/user_mailer/_gpx_description.text.erb diff --git a/app/views/user_mailer/_gpx_description.text.erb b/app/views/user_mailer/_gpx_description.text.erb index 6f7a97844..f0ce97e61 100644 --- a/app/views/user_mailer/_gpx_description.text.erb +++ b/app/views/user_mailer/_gpx_description.text.erb @@ -1,8 +1,14 @@ -<% trace_name = @trace_name %> -<% trace_description = @trace_description %> +<%= t ".details" %> + +<%= t ".filename" %> + <%= @trace_name %> +<% if @trace_url %> +<%= t ".url" %> + <%= @trace_url %> +<% end %> +<%= t ".description" %> + <%= @trace_description %> <% if @trace_tags.length > 0 %> - <% tags = @trace_tags.map { |trace_tag| trace_tag.tag }.join(", ") %> - <%= t ".description_with_tags", :trace_name => trace_name, :trace_description => trace_description, :tags => tags %> -<% else %> - <%= t ".description_with_no_tags", :trace_name => trace_name, :trace_description => trace_description %> +<%= t ".tags" %> + <%= @trace_tags.map(&:tag).join(", ") %> <% end %>