diff --git a/r2/r2/lib/pages/things.py b/r2/r2/lib/pages/things.py index d89f159db..2f9a67b12 100644 --- a/r2/r2/lib/pages/things.py +++ b/r2/r2/lib/pages/things.py @@ -169,6 +169,7 @@ class CommentButtons(PrintableButtons): ignore_reports = thing.ignore_reports, new_window = c.user.pref_newwindow, full_comment_path = thing.full_comment_path, + full_comment_count = thing.full_comment_count, deleted = thing.deleted, parent_permalink = thing.parent_permalink, can_reply = thing.can_reply, diff --git a/r2/r2/models/link.py b/r2/r2/models/link.py index fbe75064a..24c9c2ad4 100755 --- a/r2/r2/models/link.py +++ b/r2/r2/models/link.py @@ -1010,6 +1010,7 @@ class Comment(Thing, Printable): item.subreddit_path += item.subreddit.path item.full_comment_path = item.link.make_permalink(item.subreddit) + item.full_comment_count = item.link.num_comments # don't collapse for admins, on profile pages, or if deleted item.collapsed = False diff --git a/r2/r2/templates/printablebuttons.html b/r2/r2/templates/printablebuttons.html index 9fa0ad84b..84426ecf8 100644 --- a/r2/r2/templates/printablebuttons.html +++ b/r2/r2/templates/printablebuttons.html @@ -277,7 +277,8 @@ ${self.bylink_button(_("context"), thing.permalink + "?context=3")}
  • - ${self.comment_button("comment", _("full comments"), + ${self.comment_button("comment", + _("full comments") + " (%d)" % thing.full_comment_count, thing.full_comment_path, _sr_path = True, a_class = None,