pychess-variants
pychess-variants copied to clipboard
Spectator names are not clickable
spectator names appear as a text rather than clickable links. It could be nice to if the names appear as clickable links that direct the user to the profile page of the player as on lichess.
start off with something like
spectatorLinks = [f’<a href=“https://www.pychess.org/@/{spectator.username}”>{spectator.username}</a>’ for spectator in spectators] ?
so a list of links can be created in https://github.com/gbtami/pychess-variants/blob/master/client/gameCtrl.ts#L499 and https://github.com/gbtami/pychess-variants/blob/master/client/tournament.ts#L613
should be added before https://github.com/gbtami/pychess-variants/blob/master/server/spectators.py#L18
This spectatorLinks creation should happen on client side, not on the server.