From 122e1a4677ac58be0978b6ecec507ff613ebd0e4 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 3 Jan 2022 01:44:12 +0000 Subject: [PATCH] Rename replies to comments --- app/blueprints/threads/__init__.py | 6 +++--- .../threads/{user_replies.html => user_comments.html} | 4 ++-- app/templates/users/profile.html | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename app/templates/threads/{user_replies.html => user_comments.html} (93%) diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py index 7f4454b..9e2826e 100644 --- a/app/blueprints/threads/__init__.py +++ b/app/blueprints/threads/__init__.py @@ -355,10 +355,10 @@ def new(): return render_template("threads/new.html", form=form, allow_private_change=allow_change, package=package) -@bp.route("/users//replies/") -def user_replies(username): +@bp.route("/users//comments/") +def user_comments(username): user = User.query.filter_by(username=username).first() if user is None: abort(404) - return render_template("threads/user_replies.html", user=user, replies=user.replies) \ No newline at end of file + return render_template("threads/user_comments.html", user=user, replies=user.replies) \ No newline at end of file diff --git a/app/templates/threads/user_replies.html b/app/templates/threads/user_comments.html similarity index 93% rename from app/templates/threads/user_replies.html rename to app/templates/threads/user_comments.html index 5cfe2a3..1eeb6c0 100644 --- a/app/templates/threads/user_replies.html +++ b/app/templates/threads/user_comments.html @@ -6,11 +6,11 @@ {% endblock %} {% block title %} - {{ _("Replies by %(user)s", user=user.display_name) }} + {{ _("Comments by %(user)s", user=user.display_name) }} {% endblock %} {% block content %} -

{{ _("Replies by %(user)s", user=self.link()) }}

+

{{ _("Comments by %(user)s", user=self.link()) }}

    diff --git a/app/templates/users/profile.html b/app/templates/users/profile.html index 540b28a..ec2174f 100644 --- a/app/templates/users/profile.html +++ b/app/templates/users/profile.html @@ -101,7 +101,7 @@ - + {{ user.replies.count() }}