Skip to content

Commit 60a0642

Browse files
committed
Determine link to comment outside of template.
1 parent 675436d commit 60a0642

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

code_comments/notification.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def notify(self, comment):
154154

155155
self.data.update({
156156
"comment": comment,
157+
"link": self.env.abs_href() + comment.href(),
157158
})
158159

159160
projname = self.config.get("project", "name")

code_comments/templates/code_comment_notify_email.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
${comment.text}
22

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

55
--
66
${project.name} <${project.url or abs_href()}>

0 commit comments

Comments
 (0)