Groups: Fix the attachment to the left menu

This commit is contained in:
Ilya Prokopenko 2022-02-19 20:31:19 +03:00
parent 6726771874
commit a1a18b7255
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56

View file

@ -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}