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.
All checks were successful
Code Analysis and Production Deploy / analyze (push) Successful in 5m51s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Successful in 3m14s

This commit is contained in:
Torsten Schulz (local)
2026-09-24 11:43:18 +02:00
parent d3e6fbf49b
commit 1fc28a6438
4 changed files with 139 additions and 77 deletions

View File

@@ -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) {