forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-28 21:27:16 +02:00
parent e54d85c056
commit 9bc39e74bc
3 changed files with 6 additions and 5 deletions

View File

@ -20,7 +20,8 @@ def post_embed(id, v):
p = get_post(id, v, graceful=True)
return render_template("submission_listing.html", listing=[p], v=v)
if p: return render_template("submission_listing.html", listing=[p], v=v)
return ''
@app.context_processor
def inject_constants():

View File

@ -602,10 +602,10 @@
<div class="flex-row box-shadow-bottom d-flex justify-content-center justify-content-md-between align-items-center">
<ul class="nav settings-nav">
<li class="nav-item">
<a class="nav-link {% if not 'saved' in request.path %}active{% endif %}" style="font-size: .9rem !important; padding: .75rem .4rem !important;" href="/@{{u.username}}">Posts</a>
<a class="nav-link {% if not 'saved' in request.path %}active{% endif %}" style="font-size: .9rem !important; padding: .75rem .4rem !important;" href="/@{{u.username}}">Posts ({{u.post_count}})</a>
</li>
<li class="nav-item">
<a class="nav-link" style="font-size: .9rem !important; padding: .75rem .4rem !important;" href="/@{{u.username}}/comments">Comments</a>
<a class="nav-link" style="font-size: .9rem !important; padding: .75rem .4rem !important;" href="/@{{u.username}}/comments">Comments ({{u.comment_count}})</a>
</li>
{% if u.id == v.id %}
<li class="nav-item">

View File

@ -7,10 +7,10 @@
<div class="flex-row box-shadow-bottom d-flex justify-content-center justify-content-md-between align-items-center">
<ul class="nav settings-nav">
<li class="nav-item">
<a class="nav-link" style="font-size: .9rem !important; padding: .75rem .4rem !important;" href="/@{{u.username}}">Posts</a>
<a class="nav-link" style="font-size: .9rem !important; padding: .75rem .4rem !important;" href="/@{{u.username}}">Posts ({{u.post_count}})</a>
</li>
<li class="nav-item">
<a class="nav-link {% if not 'saved' in request.path %}active{% endif %}" style="font-size: .9rem !important; padding: .75rem .4rem !important;" href="/@{{u.username}}/comments">Comments</a>
<a class="nav-link {% if not 'saved' in request.path %}active{% endif %}" style="font-size: .9rem !important; padding: .75rem .4rem !important;" href="/@{{u.username}}/comments">Comments ({{u.comment_count}})</a>
</li>
{% if u.id == v.id %}
<li class="nav-item">