fix: post likes page
This commit is contained in:
parent
b63df2cb31
commit
5d5849cdef
4 changed files with 22 additions and 10 deletions
|
@ -40,9 +40,9 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if (user and user.id == post.owner) or can_manage_posts %} {% if user and
|
{% if (user and user.id == post.owner) or can_manage_posts %}
|
||||||
user.id == post.owner %}
|
|
||||||
<div class="pillmenu">
|
<div class="pillmenu">
|
||||||
|
{% if user and user.id == post.owner %}
|
||||||
<a href="/post/{{ post.id }}#/edit">
|
<a href="/post/{{ post.id }}#/edit">
|
||||||
{{ icon "pen" }}
|
{{ icon "pen" }}
|
||||||
<span>{{ text "communities:label.edit_content" }}</span>
|
<span>{{ text "communities:label.edit_content" }}</span>
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
<span>{{ text "communities:label.likes" }}</span>
|
<span>{{ text "communities:label.likes" }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card flex flex-col gap-4">
|
<div class="card flex flex-wrap gap-4 flex-collapse">
|
||||||
<!-- prettier-ignore -->
|
<!-- prettier-ignore -->
|
||||||
{% for user in list %}
|
{% for user in list %}
|
||||||
{{ components::user_plate(user=user, secondary=true) }}
|
{{ components::user_plate(user=user, secondary=true) }}
|
||||||
|
@ -71,4 +71,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.user_plate {
|
||||||
|
width: calc(50% - 0.5rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 900px) {
|
||||||
|
.user_plate {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -80,10 +80,10 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if (user and user.id == post.owner) or can_manage_posts %} {% if user and
|
{% if (user and user.id == post.owner) or can_manage_posts %}
|
||||||
user.id == post.owner %}
|
|
||||||
<div class="pillmenu">
|
<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" }}
|
{{ icon "pen" }}
|
||||||
<span>{{ text "communities:label.edit_content" }}</span>
|
<span>{{ text "communities:label.edit_content" }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -40,9 +40,9 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if (user and user.id == post.owner) or can_manage_posts %} {% if user and
|
{% if (user and user.id == post.owner) or can_manage_posts %}
|
||||||
user.id == post.owner %}
|
|
||||||
<div class="pillmenu">
|
<div class="pillmenu">
|
||||||
|
{% if user and user.id == post.owner %}
|
||||||
<a href="/post/{{ post.id }}#/edit">
|
<a href="/post/{{ post.id }}#/edit">
|
||||||
{{ icon "pen" }}
|
{{ icon "pen" }}
|
||||||
<span>{{ text "communities:label.edit_content" }}</span>
|
<span>{{ text "communities:label.edit_content" }}</span>
|
||||||
|
|
|
@ -40,9 +40,9 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if (user and user.id == post.owner) or can_manage_posts %} {% if user and
|
{% if (user and user.id == post.owner) or can_manage_posts %}
|
||||||
user.id == post.owner %}
|
|
||||||
<div class="pillmenu">
|
<div class="pillmenu">
|
||||||
|
{% if user and user.id == post.owner %}
|
||||||
<a href="/post/{{ post.id }}#/edit">
|
<a href="/post/{{ post.id }}#/edit">
|
||||||
{{ icon "pen" }}
|
{{ icon "pen" }}
|
||||||
<span>{{ text "communities:label.edit_content" }}</span>
|
<span>{{ text "communities:label.edit_content" }}</span>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue