From 049cb4bf894840c38c8ad54be800e552028b0310 Mon Sep 17 00:00:00 2001
From: dosire <sytses@gmail.com>
Date: Wed, 2 Apr 2014 12:10:01 +0200
Subject: [PATCH] Only one link per email to prevent clicking the wrong one.

---
 app/views/layouts/notify.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/layouts/notify.html.haml b/app/views/layouts/notify.html.haml
index 3e8dae0b230..991d4f0c6d8 100644
--- a/app/views/layouts/notify.html.haml
+++ b/app/views/layouts/notify.html.haml
@@ -21,6 +21,6 @@
         \—
         %br
         - if @project
-          You're receiving this notification because you are a member of the #{link_to @project.name_with_namespace, project_url(@project)} project team.
+          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.
         - if @target_url
           #{link_to "View it on GitLab", @target_url}
-- 
2.30.9