mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
Groups: Fix the attachment to the left menu
This commit is contained in:
parent
6726771874
commit
a1a18b7255
1 changed files with 2 additions and 4 deletions
|
@ -74,13 +74,12 @@
|
||||||
|
|
||||||
{block actions}
|
{block actions}
|
||||||
{var clubPinned = $thisUser->isClubPinned($x)}
|
{var clubPinned = $thisUser->isClubPinned($x)}
|
||||||
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
|
||||||
<div class="navigation" style="width: 140px;">
|
<div class="navigation" style="width: 140px;">
|
||||||
<a class="link" href="{$x->getURL()}">
|
<a class="link" href="{$x->getURL()}">
|
||||||
{_check_community}
|
{_check_community}
|
||||||
</a>
|
</a>
|
||||||
{if ($clubPinned || $thisUser->getPinnedClubCount() <= 10)}
|
{if ($clubPinned || $thisUser->getPinnedClubCount() <= 10) && $x->canBeModifiedBy($thisUser ?? NULL)}
|
||||||
<a class="link" href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}">
|
<a class="link" href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" id="_pinGroup" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}">
|
||||||
{if $clubPinned}
|
{if $clubPinned}
|
||||||
{_remove_from_left_menu}
|
{_remove_from_left_menu}
|
||||||
{else}
|
{else}
|
||||||
|
@ -95,7 +94,6 @@
|
||||||
<input style="text-transform: lowercase; width: 100%;" class="link" type="submit" value="{_"leave_community"}" />
|
<input style="text-transform: lowercase; width: 100%;" class="link" type="submit" value="{_"leave_community"}" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block bottom}
|
{block bottom}
|
||||||
|
|
Loading…
Reference in a new issue