{#if showPlayer}
{:else}
(showPlayer = true)} >
{#if data.video.movie_file?.duration}{formatVideoDuration( data.video.movie_file.duration, )}{/if}
{#if data.video.premium}
{$_("videos.premium")}
{/if} {/if}
{data.video.title}
{#if data.video.plays_count}
{data.video.plays_count} {data.video.plays_count === 1 ? "play" : "plays"}
{/if}
{timeAgo.format(new Date(data.video.upload_date))}
{likesCount}
{#each data.video.models as model (model.slug)}
{model.artist_name}
{/each}
{data.video.description}
{#each data.video.tags as tag (tag)}
#{tag}
{/each}
{$_("videos.comments", { values: { comments: data.comments.length, }, })}
{#if data.comments.length > 0}
(showComments = !showComments)} > {showComments ? $_("videos.hide") : $_("videos.show")}
{/if}
{#if data.authStatus.authenticated}
{getUserInitials(data.authStatus.user!.artist_name)}
{#if isCommentError}
{$_("videos.error")}
{commentError}
{/if}
{#if isCommentLoading}
{$_("videos.commenting")} {:else} {$_("videos.comment")} {/if}
{/if} {#if showComments}
{#each data.comments as comment (comment.id)}
{getUserInitials(comment.user?.artist_name)}
{comment.user?.artist_name}
{timeAgo.format(new Date(comment.date_created))}
{comment.comment}
{#if data.authStatus.user?.id === comment.user_id || data.authStatus.user?.is_admin}
handleDeleteComment(comment.id)} > {$_("common.delete")}
{/if}
{/each}
{/if}
{$_( "videos.back", )}