Groups: Display links not only for managed groups in My Groups

Closes #664
This commit is contained in:
Maxim Leshchenko 2022-09-23 16:29:17 +02:00
parent 6eeb05236e
commit 729784ecff
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -79,9 +79,9 @@
{/block}
{block actions}
<a href="{$x->getURL()}" class="profile_link">{_check_community}</a>
{if $x->canBeModifiedBy($thisUser ?? NULL)}
{var $clubPinned = $thisUser->isClubPinned($x)}
<a href="{$x->getURL()}" class="profile_link">{_check_community}</a>
<a href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" class="profile_link" n:if="$clubPinned || $thisUser->getPinnedClubCount() <= 10" id="_pinGroup" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}">
{if $clubPinned}
{_remove_from_left_menu}
@ -89,6 +89,7 @@
{_add_to_left_menu}
{/if}
</a>
{/if}
{if $x->getSubscriptionStatus($thisUser) == false}
<form class="profile_link_form" action="/setSub/club" method="post">
<input type="hidden" name="act" value="add" />
@ -104,7 +105,6 @@
<input type="submit" class="profile_link" value="{_leave_community}" />
</form>
{/if}
{/if}
{/block}
{block bottom}