fix: post likes page

This commit is contained in:
trisua 2025-05-14 20:03:21 -04:00
parent b63df2cb31
commit 5d5849cdef
4 changed files with 22 additions and 10 deletions

View file

@ -40,9 +40,9 @@
</a>
</div>
{% if (user and user.id == post.owner) or can_manage_posts %} {% if user and
user.id == post.owner %}
{% if (user and user.id == post.owner) or can_manage_posts %}
<div class="pillmenu">
{% if user and user.id == post.owner %}
<a href="/post/{{ post.id }}#/edit">
{{ icon "pen" }}
<span>{{ text "communities:label.edit_content" }}</span>
@ -61,7 +61,7 @@
<span>{{ text "communities:label.likes" }}</span>
</div>
<div class="card flex flex-col gap-4">
<div class="card flex flex-wrap gap-4 flex-collapse">
<!-- prettier-ignore -->
{% for user in list %}
{{ components::user_plate(user=user, secondary=true) }}
@ -71,4 +71,16 @@
</div>
</div>
</main>
<style>
.user_plate {
width: calc(50% - 0.5rem);
}
@media screen and (max-width: 900px) {
.user_plate {
width: 100%;
}
}
</style>
{% endblock %}

View file

@ -80,10 +80,10 @@
</a>
</div>
{% if (user and user.id == post.owner) or can_manage_posts %} {% if user and
user.id == post.owner %}
{% if (user and user.id == post.owner) or can_manage_posts %}
<div class="pillmenu">
<a href="#/edit" data-tab-button="edit">
{% if user and user.id == post.owner %}
<a href="/post/{{ post.id }}#/edit">
{{ icon "pen" }}
<span>{{ text "communities:label.edit_content" }}</span>
</a>

View file

@ -40,9 +40,9 @@
</a>
</div>
{% if (user and user.id == post.owner) or can_manage_posts %} {% if user and
user.id == post.owner %}
{% if (user and user.id == post.owner) or can_manage_posts %}
<div class="pillmenu">
{% if user and user.id == post.owner %}
<a href="/post/{{ post.id }}#/edit">
{{ icon "pen" }}
<span>{{ text "communities:label.edit_content" }}</span>

View file

@ -40,9 +40,9 @@
</a>
</div>
{% if (user and user.id == post.owner) or can_manage_posts %} {% if user and
user.id == post.owner %}
{% if (user and user.id == post.owner) or can_manage_posts %}
<div class="pillmenu">
{% if user and user.id == post.owner %}
<a href="/post/{{ post.id }}#/edit">
{{ icon "pen" }}
<span>{{ text "communities:label.edit_content" }}</span>