forked from rDrama/rDrama
1
0
Fork 0

Improve page titles in some profile-related pages (#113)

Kindly,

As per title

granny

Reviewed-on: rDrama/rDrama#113
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
master
mummified-corroding-granny 2023-02-06 03:23:15 +00:00 committed by Aevann
parent 1eb12901f6
commit fd613097b3
4 changed files with 4 additions and 4 deletions

View File

@ -162,7 +162,7 @@ def user_voted(v, username, cls, vote_cls, template, standalone):
else:
listing = []
return render_template(template, next_exists=next_exists, listing=listing, page=page, v=v, standalone=standalone)
return render_template(template, next_exists=next_exists, listing=listing, page=page, v=v, u=u, standalone=standalone)
@app.get("/@<username>/voted/posts")
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)

View File

@ -1,5 +1,5 @@
{% extends "default.html" %}
{% block pagetitle %}Profile Views{% endblock %}
{% block pagetitle %}@{{u.username}}'s Profile Views{% endblock %}
{% block content %}
<h5 class="pt-4 pl-2 pb-3">Users who viewed @{{u.username}}'s profile</h5>
<div class="overflow-x-auto"><table class="table table-striped mb-5">

View File

@ -1,5 +1,5 @@
{% extends "userpage/voted_posts.html" %}
{% block pagetitle %}Comments{% endblock %}
{% block pagetitle %}Comments @{{u.username}} voted on{% endblock %}
{% block listing %}
<div class="posts">
{% with comments=listing %}

View File

@ -3,7 +3,7 @@
{% block desktopBanner %}{% endblock %}
{% block desktopUserBanner %}{% endblock %}
{% block mobileUserBanner %}{% endblock %}
{% block pagetitle %}Posts{% endblock %}
{% block pagetitle %}Posts @{{u.username}} voted on{% endblock %}
{% block content %}
<ul class="nav post-nav py-2">
<li class="nav-item">