Skip to content

Commit

Permalink
Determine link to comment outside of template.
Browse files Browse the repository at this point in the history
  • Loading branch information
schwuk committed Aug 7, 2014
1 parent 675436d commit 60a0642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions code_comments/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def notify(self, comment):

self.data.update({
"comment": comment,
"link": self.env.abs_href() + comment.href(),
})

projname = self.config.get("project", "name")
Expand Down
2 changes: 1 addition & 1 deletion code_comments/templates/code_comment_notify_email.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
${comment.text}

View the comment: ${project.url or abs_href()}${comment.href()}
View the comment: ${link}

--
${project.name} <${project.url or abs_href()}>
Expand Down

0 comments on commit 60a0642

Please sign in to comment.