forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-08-13 04:52:37 +02:00
parent 6ed04788b8
commit c155e282bd
2 changed files with 70 additions and 68 deletions

View File

@ -19,4 +19,4 @@ def crosspost_embed(id):
p = get_post(id, graceful=True)
return render_template("submission_listing.html", listing=[p])
return render_template("submission_listing.html", listing=[p], postembed=True)

View File

@ -25,7 +25,7 @@
<div class="d-flex flex-row-reverse flex-md-row flex-nowrap justify-content-end">
<!-- Voting on "medium" devices or larger, hidden on smaller devices -->
{% if not postembed %}
<div class="voting my-2 d-none d-md-block pr-2">
{% if v and request.path.startswith('/@') and v.admin_level == 0 %}
@ -59,6 +59,7 @@
{% endif %}
</div>
{% endif %}
<div class="card-header bg-transparent border-0 d-flex flex-row flex-nowrap pl-2 pl-md-0 p-0 mr-md-2">
@ -236,6 +237,7 @@
</a>
</li>
{% endif %}
{% if not postembed %}
{% if v and request.path.startswith('/@') and v.admin_level == 0 %}
<li id="voting-{{p.id}}-mobile" class="voting list-inline-item d-md-none">
@ -278,7 +280,7 @@
</span>
</li>
{% endif %}
{% endif %}
</ul>
</div>
</div>