Verbessere die Benutzeroberfläche der CMS-Seiten durch Anpassungen an der Navigation und dem myTischtennis-Formular. Optimiere die Anzeige der Vereinsränge in der QTTR-Tabelle.
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
<thead class="bg-gray-50">
|
||||
<tr>
|
||||
<th class="px-4 py-3 text-left text-xs font-semibold uppercase tracking-wider text-gray-500">
|
||||
Vereinsrang<br>{{ sortBy === 'qttr' ? '(QTTR / TTR)' : '(TTR / QTTR)' }}
|
||||
Vereinsrang<br>(QTTR / TTR)
|
||||
</th>
|
||||
<th class="px-4 py-3 text-left text-xs font-semibold uppercase tracking-wider text-gray-500">
|
||||
Spieler
|
||||
@@ -190,17 +190,11 @@ function isOwnRow(playerName) {
|
||||
}
|
||||
|
||||
function formatClubRank(row) {
|
||||
const activeRank = sortBy.value === 'qttr' ? row.clubQttrRank : row.clubTtrRank
|
||||
const otherRank = sortBy.value === 'qttr' ? row.clubTtrRank : row.clubQttrRank
|
||||
return `${activeRank ?? '–'} (${otherRank ?? '–'})`
|
||||
return `${row.clubQttrRank ?? '–'} (${row.clubTtrRank ?? '–'})`
|
||||
}
|
||||
|
||||
function clubRankTitle(row) {
|
||||
const activeLabel = sortBy.value === 'qttr' ? 'QTTR' : 'TTR'
|
||||
const otherLabel = sortBy.value === 'qttr' ? 'TTR' : 'QTTR'
|
||||
const activeRank = sortBy.value === 'qttr' ? row.clubQttrRank : row.clubTtrRank
|
||||
const otherRank = sortBy.value === 'qttr' ? row.clubTtrRank : row.clubQttrRank
|
||||
return `${activeLabel}-Platzierung im Verein: ${activeRank ?? 'nicht verfügbar'}; ${otherLabel}-Platzierung im Verein: ${otherRank ?? 'nicht verfügbar'}`
|
||||
return `QTTR-Platzierung im Verein: ${row.clubQttrRank ?? 'nicht verfügbar'}; TTR-Platzierung im Verein: ${row.clubTtrRank ?? 'nicht verfügbar'}`
|
||||
}
|
||||
|
||||
function getPlayerNameClass(row) {
|
||||
|
||||
Reference in New Issue
Block a user