Emphasize trace tags in import emails
This commit is contained in:
parent
6931c49825
commit
aceb415edf
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
<% 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 %>
|
||||
|
|
|
@ -15,7 +15,7 @@ class UserMailerTest < ActionMailer::TestCase
|
|||
end
|
||||
email = UserMailer.gpx_success(trace, 100)
|
||||
|
||||
assert_match(/one two three/, email.html_part.body.to_s)
|
||||
assert_match("<em>one</em>, <em>two</em>, <em>three</em>", email.html_part.body.to_s)
|
||||
end
|
||||
|
||||
def test_gpx_success_all_traces_link
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue