From 10aa55bdf96f31f67458a350d4320eabd285a9f3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 28 Jan 2022 23:44:32 +0200 Subject: [PATCH] fds --- files/classes/comment.py | 5 +++++ files/templates/comments.html | 4 ++-- files/templates/submission.html | 4 ++-- files/templates/submission_listing.html | 4 ++-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 1a6deb993..756e774d1 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -224,6 +224,11 @@ class Comment(Base): def shortlink(self): return f"/comment/{self.id}#context" + @property + @lazy + def shortlink_context(self): + return f"/comment/{self.id}?context=9#context" + @property @lazy def author_name(self): diff --git a/files/templates/comments.html b/files/templates/comments.html index c446e99d8..0f83ebc74 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -441,7 +441,7 @@ Context - + {% if v %} @@ -611,7 +611,7 @@ {% if not c.ghost %}
  • Votes
  • {% endif %} - Copy link + Copy link Context diff --git a/files/templates/submission.html b/files/templates/submission.html index 17ecc89a3..284b05575 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -603,7 +603,7 @@ Give Award {% endif %} - Copy link + Copy link {% if v %} Subscribe @@ -740,7 +740,7 @@ {% endif %} - Copy link + Copy link {% if v %}
  • diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 9812241ba..7440d1834 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -226,7 +226,7 @@ Give Award {% endif %} - Copy link + Copy link {% if v %} Subscribe @@ -326,7 +326,7 @@
  • - + {% if p.realbody(v) and request.path != "/changelog"%}