openvk/Web/Presenters/templates/Photos/AlbumList.xml

46 lines
1.4 KiB
XML
Raw Normal View History

2020-06-07 19:04:43 +03:00
{extends "../@listView.xml"}
{var iterator = iterator_to_array($albums)}
{var page = $paginatorConf->page}
2020-07-13 06:55:45 +03:00
{block title}{_"albums"} {$owner->getCanonicalName()}{/block}
2020-06-07 19:04:43 +03:00
{block header}
<a href="{$owner->getURL()}">{$owner->getCanonicalName()}</a>
» {_"albums"}
<div n:if="$canEdit" style="float: right;">
{var isClub = ($owner instanceof openvk\Web\Models\Entities\Club)}
<a href="/albums/create{$isClub ? '?gpid=' . $owner->getId() : ''}">{_"create_album"}</a>
</div>
{/block}
{block actions}
{/block}
{* BEGIN ELEMENTS DESCRIPTION *}
{block link|strip|stripHtml}
/album{$x->getPrettyId()}
{/block}
{block preview}
{var cover = $x->getCoverPhoto()}
{var preview = is_null($cover) ? "/assets/packages/static/openvk/img/camera_200.png" : $cover->getURL()}
<a href="/album{$x->getPrettyId()}">
2022-01-24 18:20:42 +03:00
<img src="{$preview}" alt="{$x->getName()}" style="height: 130px;width: 170px;object-fit: cover;margin-right: 15px;" />
2020-06-07 19:04:43 +03:00
</a>
{/block}
{block name}
{$x->getName()}
{/block}
{block description}
<span>{$x->getDescription() ?? $x->getName()}</span><br/>
<span style="color: grey;">{$x->getPhotosCount()} фотографий</span><br/>
2022-01-24 18:20:42 +03:00
<span style="color: grey;">Обновлен {$x->getEditTime() ?? $x->getCreationTime()}</span>
2020-06-07 19:04:43 +03:00
<span style="color: grey;">Создан {$x->getCreationTime()}</span><br/>
{/block}