summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordosire <sytses@gmail.com>2014-04-02 12:10:01 +0200
committerdosire <sytses@gmail.com>2014-04-02 12:10:01 +0200
commit049cb4bf894840c38c8ad54be800e552028b0310 (patch)
tree792909b3509d80e92c15bd049c1c52a9ebcd301e
parentb98bd5c8d07adab118775e9dc8aaf62fae733c38 (diff)
downloadgitlab-ce-049cb4bf894840c38c8ad54be800e552028b0310.tar.gz
Only one link per email to prevent clicking the wrong one.
-rw-r--r--app/views/layouts/notify.html.haml2
1 files changed, 1 insertions, 1 deletions
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}