]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_mailer/_gpx_description.html.erb
Don't link to trace pages from failed import emails
[rails.git] / app / views / user_mailer / _gpx_description.html.erb
index eb9d5e102340e12f0d5f1435d8cdc702369bbc56..42998213693f4cbdc3b5f1df0211fa07a0b02907 100644 (file)
@@ -1,4 +1,5 @@
-<% trace_name = link_to tag.strong(@trace_name), @trace_url %>
+<% 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(" ") %>