X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/02aa14ffea55ef5ed4c488588a37d27bbf60f95b..51f331e8cccbd20f06f5de1d7f2b043da327fd0a:/app/views/user_mailer/_gpx_description.html.erb diff --git a/app/views/user_mailer/_gpx_description.html.erb b/app/views/user_mailer/_gpx_description.html.erb index eb9d5e102..429982136 100644 --- a/app/views/user_mailer/_gpx_description.html.erb +++ b/app/views/user_mailer/_gpx_description.html.erb @@ -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(" ") %>