Skip to content

Commit 8985a70

Browse files
committed
Moved logic for urls in notifications.
1 parent 6bc22a5 commit 8985a70

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

code_comments/notification.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def notify(self, comment):
151151

152152
self.data.update({
153153
"comment": comment,
154-
"link": self.env.abs_href() + comment.href(),
154+
"comment_url": self.env.abs_href() + comment.href(),
155+
"project_url": self.env.project_url or self.env.abs_href(),
155156
})
156157

157158
projname = self.config.get("project", "name")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
${comment.text}
22

3-
View the comment: ${link}
3+
View the comment: ${comment_url}
44

55
--
6-
${project.name} <${project.url or abs_href()}>
6+
${project.name} <${project_url}>
77
${project.descr}

0 commit comments

Comments
 (0)