]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_mailer/_gpx_description.html.erb
Link to trace pages from successful import emails
[rails.git] / app / views / user_mailer / _gpx_description.html.erb
index ac60ef7b92ffbf793003e2bb9dbd47b29310d146..eb9d5e102340e12f0d5f1435d8cdc702369bbc56 100644 (file)
@@ -1,7 +1,7 @@
-<% trace_name = tag.strong(@trace_name) %>
+<% trace_name = link_to tag.strong(@trace_name), @trace_url %>
 <% trace_description = tag.em(@trace_description) %>
 <% if @trace_tags.length > 0 %>
-  <% tags = @trace_tags.map { tag.tag.rstrip.join(" ") } %>
+  <% tags = @trace_tags.map(&:tag).join(" ") %>
   <%= 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 %>