add: only people with post manage permission to view post likes

This commit is contained in:
trisua 2025-05-14 20:16:40 -04:00
parent 5d5849cdef
commit 12adcd5fd3
5 changed files with 55 additions and 45 deletions

View file

@ -33,11 +33,6 @@
{{ icon "quote" }}
<span>{{ text "communities:label.quotes" }}</span>
</a>
<a href="/post/{{ post.id }}/likes" class="active">
{{ icon "heart" }}
<span>{{ text "communities:label.likes" }}</span>
</a>
</div>
{% if (user and user.id == post.owner) or can_manage_posts %}
@ -48,6 +43,11 @@
<span>{{ text "communities:label.edit_content" }}</span>
</a>
{% endif %}
<a href="/post/{{ post.id }}/likes" class="active">
{{ icon "heart" }}
<span>{{ text "communities:label.likes" }}</span>
</a>
<a href="/post/{{ post.id }}#/configure">
{{ icon "settings" }}
<span>{{ text "communities:action.configure" }}</span>

View file

@ -73,11 +73,6 @@
{{ icon "quote" }}
<span>{{ text "communities:label.quotes" }}</span>
</a>
<a href="/post/{{ post.id }}/likes">
{{ icon "heart" }}
<span>{{ text "communities:label.likes" }}</span>
</a>
</div>
{% if (user and user.id == post.owner) or can_manage_posts %}
@ -88,6 +83,12 @@
<span>{{ text "communities:label.edit_content" }}</span>
</a>
{% endif %}
<a href="/post/{{ post.id }}/likes">
{{ icon "heart" }}
<span>{{ text "communities:label.likes" }}</span>
</a>
<a href="#/configure" data-tab-button="configure">
{{ icon "settings" }}
<span>{{ text "communities:action.configure" }}</span>

View file

@ -33,11 +33,6 @@
{{ icon "quote" }}
<span>{{ text "communities:label.quotes" }}</span>
</a>
<a href="/post/{{ post.id }}/likes">
{{ icon "heart" }}
<span>{{ text "communities:label.likes" }}</span>
</a>
</div>
{% if (user and user.id == post.owner) or can_manage_posts %}
@ -48,6 +43,11 @@
<span>{{ text "communities:label.edit_content" }}</span>
</a>
{% endif %}
<a href="/post/{{ post.id }}/likes">
{{ icon "heart" }}
<span>{{ text "communities:label.likes" }}</span>
</a>
<a href="/post/{{ post.id }}#/configure">
{{ icon "settings" }}
<span>{{ text "communities:action.configure" }}</span>

View file

@ -33,11 +33,6 @@
{{ icon "quote" }}
<span>{{ text "communities:label.quotes" }}</span>
</a>
<a href="/post/{{ post.id }}/likes">
{{ icon "heart" }}
<span>{{ text "communities:label.likes" }}</span>
</a>
</div>
{% if (user and user.id == post.owner) or can_manage_posts %}
@ -48,6 +43,11 @@
<span>{{ text "communities:label.edit_content" }}</span>
</a>
{% endif %}
<a href="/post/{{ post.id }}/likes">
{{ icon "heart" }}
<span>{{ text "communities:label.likes" }}</span>
</a>
<a href="/post/{{ post.id }}#/configure">
{{ icon "settings" }}
<span>{{ text "communities:action.configure" }}</span>