{{if $album->coverPhoto('masked')}}
{{endif}}
{{if $album->description}}
{{$truncateAttributes = array('data-ipsTruncate', 'data-ipsTruncate-size="10 lines"');}}
{template="richText" group="global" app="core" location="global" params="$album->description, array('ipsType_medium'), array(), $truncateAttributes"}
{{endif}}
{{if $album->type === \IPS\gallery\Album::AUTH_TYPE_PRIVATE}}
{lang="album_private_badge"}
{{elseif $album->type === \IPS\gallery\Album::AUTH_TYPE_RESTRICTED}}
{lang="album_friend_only_badge"}
{{endif}}
{{if !isset( \IPS\Request::i()->tab ) || \IPS\Request::i()->tab !== 'node_gallery_gallery'}}
- {lang="album_created_by"} {$album->owner()->link()|raw}
{{endif}}
{{if $album->last_img_date}}
- {lang="updated"} {datetime="$album->last_img_date"}
{{endif}}
- {lang="num_images" pluralize="$album->count_imgs"}
{{if $album->use_comments && $album->comments > 0}}
- {lang="gallery_album_num_comments_lc" pluralize="$album->comments"}
{{endif}}
{{if $album->allow_comments && $album->count_comments > 0}}
- {lang="gallery_image_comments_s" pluralize="$album->count_comments"}
{{endif}}
{{if $album->use_reviews && $album->reviews > 0}}
- {lang="gallery_album_num_reviews_lc" pluralize="$album->reviews"}
{{endif}}
{{if \IPS\IPS::classUsesTrait( $album->asItem(), 'IPS\Content\Reactable' ) and settings.reputation_enabled}}
{template="reputation" app="core" group="global" params="$album->asItem()"}
{{endif}}
{{if $album->canDelete() || $album->asItem()->canEdit() || $album->asItem()->canOnMessage( 'add' ) || $album->asItem()->canFeature() || $album->asItem()->canUnfeature() || $album->asItem()->canHide() || $album->asItem()->canUnhide() || $album->asItem()->canMove() || $album->asItem()->canLock() || $album->asItem()->canUnlock() || $album->asItem()->canReportOrRevoke() === TRUE}}
{{endif}}
{{if \count( $album->_event )}}
{lang="events_in_album" pluralize="\count( $album->_event )"}
{template="eventBlocks" group="view" app="calendar" params="$album->_event"}
{{endif}}