Icon.APPLY = makePreset('ApplyIcon', 'right-to-bracket');
Icon.APPLICATIONS = makePreset('ApplicationsIcon', 'person-running');
Icon.BROWSER_SOURCE = makePreset('BrowserSourceIcon', 'tv');
+Icon.CHANGED = makePreset('ChangedIcon', 'pen-to-square');
Icon.CHART = makePreset('ChartIcon', 'chart-line');
Icon.CROSSHAIRS = makePreset('CrosshairsIcon', 'crosshairs');
Icon.DELETE = makePreset('DeleteIcon', 'user-xmark');
{(maySee || mayVerify) && result && result.has_finished
? getTime(result, true)
: t('results.pending')}
+ {mayVerify && result?.changed > 0 ?
+ <em className="ms-2">({t('results.changeCounter', { count: result.changed })})</em>
+ : null}
</div>
</Form.Group>
<Form.Group as={Col} sm={6}>
return <Table className="result-table" striped hover>
<thead>
<tr>
- {mayProtocol ?
+ {mayProtocol ? <>
+ <th className="result-changes"><Icon.CHANGED /></th>
<th className="result-protocol"><Icon.PROTOCOL /></th>
- : null}
+ </> : null}
<th className="result-runner">{t('results.runner')}</th>
{maySee ?
<th className="result-placement">{t('results.placement')}</th>
);
return <tr>
- {showProtocol ?
+ {showProtocol ? <>
+ <td className="result-changes">
+ {result?.changed === 1 ?
+ `${result.changed}x`
+ : null}
+ {result?.changed > 1 ?
+ <span className="fs-5">{`${result.changed}x`}</span>
+ : null}
+ </td>
<td className="result-protocol">
{result ?
<ResultProtocol
/>
: null}
</td>
- : null}
+ </> : null}
<td className="result-runner">
<Box user={user} />
</td>
AllowedIcon: 'Erlaubt',
ApplicationsIcon: 'Anträge',
ApplyIcon: 'Beantragen',
+ ChangedIcon: 'Geändert',
ChartIcon: 'Diagramm',
DiscordIcon: 'Discord',
EditIcon: 'Bearbeiten',
},
results: {
addComment: 'Kommentieren',
+ changeCounter: '{{ count }}x geändert',
+ comment: 'Kommentar',
createdAt: 'Eingetragen am',
createdAtFormat: '{{ date, L LT }}',
- comment: 'Kommentar',
details: 'Details',
disqualified: 'Disqualifiziert',
disqualifiedShort: 'DQ',
AllowedIcon: 'Allowed',
ApplicationsIcon: 'Applications',
ApplyIcon: 'Apply',
+ ChangedIcon: 'Changed',
ChartIcon: 'Chart',
DiscordIcon: 'Discord',
EditIcon: 'Edit',
},
results: {
addComment: 'Comment',
+ changeCounter: 'Changed {{ count }} times',
+ changeCounter_one: 'Changed once',
comment: 'Comment',
createdAt: 'Entry from',
createdAtFormat: '{{ date, L LT }}',
vertical-align: middle;
}
+ .result-changes,
.result-protocol {
text-align: center;
width: 5ex;