mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
Rename replies to comments
This commit is contained in:
parent
933d8ebfe7
commit
122e1a4677
@ -355,10 +355,10 @@ def new():
|
|||||||
return render_template("threads/new.html", form=form, allow_private_change=allow_change, package=package)
|
return render_template("threads/new.html", form=form, allow_private_change=allow_change, package=package)
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/users/<username>/replies/")
|
@bp.route("/users/<username>/comments/")
|
||||||
def user_replies(username):
|
def user_comments(username):
|
||||||
user = User.query.filter_by(username=username).first()
|
user = User.query.filter_by(username=username).first()
|
||||||
if user is None:
|
if user is None:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
return render_template("threads/user_replies.html", user=user, replies=user.replies)
|
return render_template("threads/user_comments.html", user=user, replies=user.replies)
|
@ -6,11 +6,11 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{{ _("Replies by %(user)s", user=user.display_name) }}
|
{{ _("Comments by %(user)s", user=user.display_name) }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ _("Replies by %(user)s", user=self.link()) }}</h1>
|
<h1>{{ _("Comments by %(user)s", user=self.link()) }}</h1>
|
||||||
|
|
||||||
|
|
||||||
<ul class="comments mt-5 mb-0">
|
<ul class="comments mt-5 mb-0">
|
@ -101,7 +101,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="btn" href="{{ url_for('threads.user_replies', username=user.username) }}">
|
<a class="btn" href="{{ url_for('threads.user_comments', username=user.username) }}">
|
||||||
<i class="fas fa-comment"></i>
|
<i class="fas fa-comment"></i>
|
||||||
<span class="count">
|
<span class="count">
|
||||||
<strong>{{ user.replies.count() }}</strong>
|
<strong>{{ user.replies.count() }}</strong>
|
||||||
|
Loading…
Reference in New Issue
Block a user