Commit ca0691ca8ee7e3de15eef8c3f9a738a5f6160556

Authored by Dmitriy Zaporozhets
2 parents f2040c29 049cb4bf

Merge branch 'prevent-two-links-in-emails' into 'master'

Prevent-two-links-in-emails

Only one link per email to prevent clicking the wrong one.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/layouts/notify.html.haml
@@ -21,6 +21,6 @@ @@ -21,6 +21,6 @@
21 \— 21 \—
22 %br 22 %br
23 - if @project 23 - if @project
24 - You're receiving this notification because you are a member of the #{link_to @project.name_with_namespace, project_url(@project)} project team. 24 + You're receiving this notification because you are a member of the #{link_to_unless @target_url, @project.name_with_namespace, project_url(@project)} project team.
25 - if @target_url 25 - if @target_url
26 #{link_to "View it on GitLab", @target_url} 26 #{link_to "View it on GitLab", @target_url}