Add back ability to create albums in groups

This commit is contained in:
Celestora 2022-04-06 12:47:56 +03:00
parent c1317a6ff8
commit 6c0d543d26

View file

@ -23,9 +23,11 @@
{else}
{tr("albums", $count)}
{/if}
<span n:if="isset($thisUser) && $thisUser->getId() == $owner->getId()">
<span n:if="$canEdit" style="float: right;">
&nbsp;|&nbsp;
<a href="/albums/create">{_create_album}</a>
{var isClub = ($owner instanceof \openvk\Web\Models\Entities\Club)}
<a href="/albums/create{$isClub ? '?gpid=' . $owner->getId() : ''}">{_create_album}</a>
</span>
</div>
</div>