X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2c1033f62d450b7ed82058ee89d99983b7d97829..c62b8b29d4f6a6c7f2b12539a690d0faa8a34b29:/app/views/user_mailer/_gpx_description.html.erb?ds=sidebyside
diff --git a/app/views/user_mailer/_gpx_description.html.erb b/app/views/user_mailer/_gpx_description.html.erb
index 4fdf929ac..85b4c7cae 100644
--- a/app/views/user_mailer/_gpx_description.html.erb
+++ b/app/views/user_mailer/_gpx_description.html.erb
@@ -1,12 +1,9 @@
-<%= t "user_mailer.gpx_notification.your_gpx_file" %>
-<%= @trace_name %>
-<%= t "user_mailer.gpx_notification.with_description" %>
-<%= @trace_description %>
-<% if @trace_tags.length>0 %>
- <%= t "user_mailer.gpx_notification.and_the_tags" %>
- <% @trace_tags.each do |tag| %>
- <%= tag.tag.rstrip %>
- <% end %>
+<% trace_name = tag.strong(@trace_name) %>
+<% trace_name = link_to(trace_name, @trace_url) if @trace_url %>
+<% trace_description = tag.em(@trace_description) %>
+<% if @trace_tags.length > 0 %>
+ <% tags = safe_join @trace_tags.map { |trace_tag| tag.em trace_tag.tag }, ", " %>
+ <%= t ".description_with_tags_html", :trace_name => trace_name, :trace_description => trace_description, :tags => tags %>
<% else %>
- <%= t "user_mailer.gpx_notification.and_no_tags" %>
+ <%= t ".description_with_no_tags_html", :trace_name => trace_name, :trace_description => trace_description %>
<% end %>