2020-06-07 19:04:43 +03:00
|
|
|
|
{extends "../@listView.xml"}
|
2021-11-20 13:47:59 +03:00
|
|
|
|
{var iterator = $user->getClubs($page, $admin)}
|
|
|
|
|
{var count = $user->getClubCount($admin)}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
2020-07-13 06:55:45 +03:00
|
|
|
|
{block title}{_"groups"}{/block}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
|
|
{block header}
|
|
|
|
|
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a> » {_"groups"}
|
|
|
|
|
|
|
|
|
|
<div n:if="!is_null($thisUser) && $user->getId() === $thisUser->getId()" style="float:right;">
|
|
|
|
|
<span>
|
|
|
|
|
<b>
|
|
|
|
|
<a href="/groups_create">
|
|
|
|
|
{_"create_group"}
|
|
|
|
|
</a>
|
|
|
|
|
</b>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
|
|
{block actions}
|
|
|
|
|
<div class="tile">
|
|
|
|
|
<a href="javascript:alert('Не запилил')" class="profile_link">Поиск групп</a>
|
|
|
|
|
</div>
|
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
|
|
{* BEGIN ELEMENTS DESCRIPTION *}
|
|
|
|
|
|
2021-11-20 13:47:59 +03:00
|
|
|
|
{block tabs}
|
|
|
|
|
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
|
|
|
|
<div {if !$admin}id="activetabs"{/if} class="tab">
|
|
|
|
|
<a {if !$admin}id="act_tab_a"{/if} href="/groups{$user->getId()}">
|
|
|
|
|
{_groups}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div {if $admin}id="activetabs"{/if} class="tab">
|
|
|
|
|
<a {if $admin}id="act_tab_a"{/if} href="/groups{$user->getId()}?act=managed">
|
|
|
|
|
{_managed}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
{/block}
|
|
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
|
{block link|strip|stripHtml}
|
|
|
|
|
{$x->getURL()}
|
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
|
|
{block preview}
|
|
|
|
|
<img src="{$x->getAvatarUrl()}" width="75" alt="Фотография группы" />
|
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
|
|
{block name}
|
|
|
|
|
{$x->getName()}
|
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
|
|
{block description}
|
|
|
|
|
{$x->getDescription()}
|
2021-11-10 11:45:06 +03:00
|
|
|
|
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
|
|
|
|
{var clubPinned = $thisUser->isClubPinned($x)}
|
|
|
|
|
<table n:if="$clubPinned || $thisUser->getPinnedClubCount() <= 10">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="120" valign="top"><span class="nobold">{_actions}: </span></td>
|
|
|
|
|
<td>
|
|
|
|
|
<a href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}">
|
|
|
|
|
{if $clubPinned}
|
2021-11-12 12:32:22 +03:00
|
|
|
|
{_remove_from_left_menu}
|
2021-11-10 11:45:06 +03:00
|
|
|
|
{else}
|
2021-11-12 12:32:22 +03:00
|
|
|
|
{_add_to_left_menu}
|
2021-11-10 11:45:06 +03:00
|
|
|
|
{/if}
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
{/if}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
{/block}
|