{var $title => "⚐ {$new->title}"}
{define author}
{$author->name|trim}
{$author->estimatedTimeTranslated|secondsToTime}{*
*}{if $author->joined}, {/if}
{if $author->joined}joined {$author->joined|timeAgo}{/if}{*
*}{ifset $postfix}, {$postfix}{/ifset}
{/define}
{block #scripts}
{/block}
{block #content}
{if isset($old)}
published {$new->publishedAt|timeAgo}{* *}{ifset $old}, {$new->textChange * 100|number} % text change{* *}{* *}{if $new->timeChange}, {$new->timeChange * 100|number} % timing change {/if} {/ifset}
{cache $new->id, expires => '+4 hours'}{if isset($old) && $old->author->name !== $new->author->name} {include author, author => $old->author, class => 'author-old'} — {include author, author => $new->author, class => 'author-new'} {elseif isset($old)} {include author, author => $new->author, class => 'author-new', postfix => 'authored both revisions'} {else} {include author, author => $new->author, class => 'author-new'} {/if}
{/cache} {var $threshold = 10} {cache $new->id} {var $done = $new->timeTranslated} {var $outOf = $new->video->canonicalTimeTranslated} {if $outOf}Only {$done|time} translated out of {$outOf|time}, {(1-$done/$outOf) * 100|number} % ({$outOf - $done|time}) left
Seems complete: {$done|time} translated out of {$outOf|time}
{elseif $done}Although {$done|time} is translated, there are no English subtitles for comparison.
{/if} {/cache} {if $editor} {var $ksid = $new->video->siteId} {if $ksid} Video on khanovaskola.cz {if $new->revision === $rev} (on this revision) {elseif $new->revision > $rev} (on older revision #{$rev}) {else} (on newer revision #{$rev}) {/if} {/if} {/if}| #{$revision->revision} |
|
{$revision->publishedAt|timeAgo} | {* vars $outOf, $threshold already set *} {default $outOf = $new->video->canonicalTimeTranslated} {if $outOf} {* ignore if canonical time not set *} {var $done = $revision->timeTranslated} {$done/$outOf * 100|number} % ~100 % {/if} | {if $revision->incomplete || $revision->approved} {var $i = $revision->incomplete} {if $i}incomplete{else}approved{/if} {/if} | {if $user->loggedIn && $revision->comments->count()}||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{/if}
{if $user->loggedIn && $new->id === $revision->id}
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{form commentForm}
{input text, class => "form-control", placeholder => "Comment this revision (only visible to other editors)"}
{/form}
|
{/if}
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||