{extends "../@layout.xml"}
{block title}{_album} {$album->getName()}{/block}
{block header}
{var $isClub = ($album->getOwner() instanceof openvk\Web\Models\Entities\Club)}
{$album->getOwner()->getCanonicalName()}
{if $isClub}
» {_albums}
{else}
» {_albums}
{/if}
» {$album->getName()}
{/block}
{block content}
{* TODO: Добавить склонения *}
{$album->getPhotosCount()} {_photos}
{if !is_null($thisUser) && $album->canBeModifiedBy($thisUser) && !$album->isCreatedBySystem()}
|
{_upload_photo}
|
{_edit_album}
{/if}
{if $album->getPhotosCount() > 0}