mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Groups: Display links not only for managed groups in My Groups
Closes #664
This commit is contained in:
parent
6eeb05236e
commit
729784ecff
1 changed files with 16 additions and 16 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue