Group: Refactoring for admins (also fixes #252)

This commit is contained in:
veselcraft 2021-11-06 22:25:11 +03:00
parent 7b17328399
commit f555c781bf
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E
2 changed files with 24 additions and 4 deletions

View file

@ -17,6 +17,26 @@
{* BEGIN ELEMENTS DESCRIPTION *}
{block tabs}
{if $club->canBeModifiedBy($thisUser)}
<div class="tab">
<a href="/club{$club->getId()}/edit">
{_main}
</a>
</div>
<div id="activetabs" class="tab">
<a id="act_tab_a" href="/club{$club->getId()}/followers">
{_followers}
</a>
</div>
<div class="tab">
<a href="/club{$club->getId()}/stats">
{_statistics}
</a>
</div>
{/if}
{/block}
{block link|strip|stripHtml}
/id{$x->getId()}
{/block}

View file

@ -1,15 +1,15 @@
{extends "../@layout.xml"}
{block title}Статистика группы{/block}
{block title}{$club->getName()} » {_statistics}{/block}
{block header}
<a href="{$club->getURL()}">{$club->getName()}</a> » Статистика
<a href="{$club->getURL()}">{$club->getName()}</a> » {_statistics}
{/block}
{block content}
<div class="tabs">
<div class="tab">
<a href="/club{$club->getId()}/edit">
Настройки
{_main}
</a>
</div>
<div class="tab">
@ -19,7 +19,7 @@
</div>
<div id="activetabs" class="tab">
<a id="act_tab_a" href="javascript:void(0)">
Статистика
{_statistics}
</a>
</div>
</div>