| setSortKey('rating')}
>
{$i18n.t('RK')}
{#if orderBy === 'rating'}
{#if direction === 'asc'}
|
setSortKey('name')}
>
{$i18n.t('Model')}
{#if orderBy === 'name'}
{#if direction === 'asc'}
|
setSortKey('rating')}
>
{$i18n.t('Rating')}
{#if orderBy === 'rating'}
{#if direction === 'asc'}
|
setSortKey('won')}
>
{$i18n.t('Won')}
{#if orderBy === 'won'}
{#if direction === 'asc'}
|
setSortKey('lost')}
>
{$i18n.t('Lost')}
{#if orderBy === 'lost'}
{#if direction === 'asc'}
|
|---|---|---|---|---|
|
{model?.rating !== '-' ? modelIdx + 1 : '-'}
|
{model.name}
|
{model.rating} |
{#if model.stats.won === '-'}
-
{:else}
{((model.stats.won / model.stats.count) * 100).toFixed(1)}%
{model.stats.won}
{/if}
|
{#if model.stats.lost === '-'}
-
{:else}
{((model.stats.lost / model.stats.count) * 100).toFixed(1)}%
{model.stats.lost}
{/if}
|