mirror of
https://github.com/openvk/openvk
synced 2025-01-09 01:09:46 +03:00
Groups: Fix action block issue
This commit is contained in:
parent
3f1b852e50
commit
c911ebac25
1 changed files with 10 additions and 10 deletions
|
@ -72,19 +72,19 @@
|
||||||
|
|
||||||
{block actions}
|
{block actions}
|
||||||
{var clubPinned = $thisUser->isClubPinned($x)}
|
{var clubPinned = $thisUser->isClubPinned($x)}
|
||||||
{if $x->canBeModifiedBy($thisUser ?? NULL) && ($clubPinned || $thisUser->getPinnedClubCount() <= 10)}
|
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
||||||
<a style="border-bottom: none; width: 140px;" class="profile_link" href="{$x->getURL()}">
|
<a style="border-bottom: none; width: 140px;" class="profile_link" href="{$x->getURL()}">
|
||||||
{_check_community}
|
{_check_community}
|
||||||
</a>
|
</a>
|
||||||
|
{if ($clubPinned || $thisUser->getPinnedClubCount() <= 10)}
|
||||||
<a style="border-bottom: none; width: 140px;" class="profile_link" href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}">
|
<a style="border-bottom: none; width: 140px;" class="profile_link" href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}">
|
||||||
{if $clubPinned}
|
{if $clubPinned}
|
||||||
{_remove_from_left_menu}
|
{_remove_from_left_menu}
|
||||||
{else}
|
{else}
|
||||||
{_add_to_left_menu}
|
{_add_to_left_menu}
|
||||||
{/if}
|
{/if}
|
||||||
</a>
|
</a>
|
||||||
|
{/if}
|
||||||
<form action="/setSub/club" method="post">
|
<form action="/setSub/club" method="post">
|
||||||
<input type="hidden" name="act" value="rem" />
|
<input type="hidden" name="act" value="rem" />
|
||||||
<input type="hidden" name="id" value="{$x->getId()}" />
|
<input type="hidden" name="id" value="{$x->getId()}" />
|
||||||
|
|
Loading…
Reference in a new issue