This commit is contained in:
n1rwana 2022-09-05 23:02:43 +03:00 committed by GitHub
parent 607312dc1c
commit 585616c88f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,12 +89,21 @@
{_add_to_left_menu}
{/if}
</a>
<form class="profile_link_form" action="/setSub/club" method="post">
<input type="hidden" name="act" value="rem" />
<input type="hidden" name="id" value="{$x->getId()}" />
<input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" class="profile_link" value="{_leave_community}" />
</form>
{if $x->getSubscriptionStatus($thisUser) == false}
<form class="profile_link_form" action="/setSub/club" method="post">
<input type="hidden" name="act" value="add" />
<input type="hidden" name="id" value="{$x->getId()}" />
<input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" class="profile_link" value="{_join_community}" />
</form>
{else}
<form class="profile_link_form" action="/setSub/club" method="post">
<input type="hidden" name="act" value="rem" />
<input type="hidden" name="id" value="{$x->getId()}" />
<input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" class="profile_link" value="{_leave_community}" />
</form>
{/if}
{/if}
{/block}