summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/notify/repository_push_email.html.haml4
-rw-r--r--app/views/notify/repository_push_email.text.haml4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/notify/repository_push_email.html.haml b/app/views/notify/repository_push_email.html.haml
index 0358810afdc..3cf50bf0826 100644
--- a/app/views/notify/repository_push_email.html.haml
+++ b/app/views/notify/repository_push_email.html.haml
@@ -1,11 +1,11 @@
-%h3 #{@author.name} pushed to #{@branch} at #{@project.name_with_namespace}
+%h3 #{@author.name} pushed to #{@branch} at #{link_to @project.name_with_namespace, project_url(@project)}
%h4 Commits:
%ul
- @commits.each do |commit|
%li
- %strong #{commit.short_id}
+ %strong #{link_to commit.short_id, project_commit_url(@project, commit)}
%span by #{commit.author_name}
%pre #{commit.safe_message}
diff --git a/app/views/notify/repository_push_email.text.haml b/app/views/notify/repository_push_email.text.haml
index 4d7c972a16a..6f5f9eda2c5 100644
--- a/app/views/notify/repository_push_email.text.haml
+++ b/app/views/notify/repository_push_email.text.haml
@@ -1,9 +1,9 @@
-#{@author.name} pushed to #{@branch} at #{@project.name_with_namespace}
+#{@author.name} pushed to #{@branch} at #{link_to @project.name_with_namespace, project_url(@project)}
\
Commits:
- @commits.each do |commit|
- #{commit.short_id} by #{commit.author_name}
+ #{link_to commit.short_id, project_commit_url(@project, commit)} by #{commit.author_name}
#{commit.safe_message}
\- - - - -
\