{#if onShowContextMenu}
{/if}

{album.albumName}

{#if showDateRange && album.startDate && album.endDate}

{getShortDateRange(album.startDate, album.endDate)}

{/if} {#if showItemCount}

{album.assetCount.toLocaleString($locale)} {album.assetCount === 1 ? `item` : `items`}

{/if} {#if (showOwner || album.shared) && showItemCount}

{/if} {#if showOwner} {#if $user.id === album.ownerId}

Owned

{:else if album.owner}

Shared by {album.owner.name}

{:else}

Shared

{/if} {:else if album.shared}

Shared

{/if}