mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +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}
|
||||||
|
|
||||||
{block actions}
|
{block actions}
|
||||||
|
<a href="{$x->getURL()}" class="profile_link">{_check_community}</a>
|
||||||
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
||||||
{var $clubPinned = $thisUser->isClubPinned($x)}
|
{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()}">
|
<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}
|
{if $clubPinned}
|
||||||
{_remove_from_left_menu}
|
{_remove_from_left_menu}
|
||||||
|
@ -89,21 +89,21 @@
|
||||||
{_add_to_left_menu}
|
{_add_to_left_menu}
|
||||||
{/if}
|
{/if}
|
||||||
</a>
|
</a>
|
||||||
{if $x->getSubscriptionStatus($thisUser) == false}
|
{/if}
|
||||||
<form class="profile_link_form" action="/setSub/club" method="post">
|
{if $x->getSubscriptionStatus($thisUser) == false}
|
||||||
<input type="hidden" name="act" value="add" />
|
<form class="profile_link_form" action="/setSub/club" method="post">
|
||||||
<input type="hidden" name="id" value="{$x->getId()}" />
|
<input type="hidden" name="act" value="add" />
|
||||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
<input type="hidden" name="id" value="{$x->getId()}" />
|
||||||
<input type="submit" class="profile_link" value="{_join_community}" />
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||||
</form>
|
<input type="submit" class="profile_link" value="{_join_community}" />
|
||||||
{else}
|
</form>
|
||||||
<form class="profile_link_form" action="/setSub/club" method="post">
|
{else}
|
||||||
<input type="hidden" name="act" value="rem" />
|
<form class="profile_link_form" action="/setSub/club" method="post">
|
||||||
<input type="hidden" name="id" value="{$x->getId()}" />
|
<input type="hidden" name="act" value="rem" />
|
||||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
<input type="hidden" name="id" value="{$x->getId()}" />
|
||||||
<input type="submit" class="profile_link" value="{_leave_community}" />
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||||
</form>
|
<input type="submit" class="profile_link" value="{_leave_community}" />
|
||||||
{/if}
|
</form>
|
||||||
{/if}
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue