X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/550c4a3a45814fde5c809334c85f1ebc47659a82..edda4af515cfb0bd4de1ed0650b47e124bfad6ed:/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 50fcd6960..85b4c7cae 100644 --- a/app/views/user_mailer/_gpx_description.html.erb +++ b/app/views/user_mailer/_gpx_description.html.erb @@ -1,7 +1,8 @@ <% 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 = @trace_tags.map(&:tag).join(" ") %> + <% 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 ".description_with_no_tags_html", :trace_name => trace_name, :trace_description => trace_description %>