forked from rDrama/rDrama
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
parent
1eb12901f6
commit
fd613097b3
|
@ -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)
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue