Добавлены ссылки на профили Lichess для имен игроков в веб-интерфейсе

- Имена игроков в таблице теперь являются ссылками на их профили на Lichess
- Формат ссылки: https://lichess.org/@/username
- Ссылки открываются в новой вкладке
- Добавлены стили для ссылок (.gamer-link)
This commit is contained in:
vrubelroman 2025-10-31 19:18:54 +03:00
parent 10211937c7
commit 558de5011a

View file

@ -226,6 +226,17 @@
font-size: 14px; font-size: 14px;
margin: 5px 0; margin: 5px 0;
} }
.gamer-link {
color: #667eea !important;
text-decoration: none !important;
transition: color 0.3s;
}
.gamer-link:hover {
color: #5568d3 !important;
text-decoration: underline !important;
}
</style> </style>
</head> </head>
<body> <body>
@ -379,7 +390,7 @@
<tbody> <tbody>
${gamers.map(gamer => ` ${gamers.map(gamer => `
<tr> <tr>
<td><strong>${escapeHtml(gamer.username)}</strong> (ID: ${gamer.id})</td> <td><strong><a href="https://lichess.org/@/${gamer.username}" target="_blank" class="gamer-link">${escapeHtml(gamer.username)}</a></strong> (ID: ${gamer.id})</td>
<td> <td>
<span class="badge ${gamer.is_active ? 'badge-success' : 'badge-secondary'}"> <span class="badge ${gamer.is_active ? 'badge-success' : 'badge-secondary'}">
${gamer.is_active ? '✅ АКТИВЕН' : '⚪'} ${gamer.is_active ? '✅ АКТИВЕН' : '⚪'}