{* selfplay - it's a self-play game *}>
<{if $chess_gamedata.white_uid eq $chess_gamedata.black_uid}>
<{assign var=selfplay value=true}>
<{else}>
<{assign var=selfplay value=false}>
<{/if}>
<{* can_move - the game isn't over or suspended, it's the current user's move, and he hasn't offered a draw that has been neither accepted nor rejected *}>
<{if $chess_gamedata.pgn_result eq '*' and not $chess_gamedata.suspended and $chess_user_color eq $chess_gamedata.fen_active_color and $chess_gamedata.offer_draw ne $chess_user_color}>
<{assign var=can_move value=true}>
<{else}>
<{assign var=can_move value=false}>
<{/if}>
<{* #*#TBD# - color of player names in th-tag not visible enough in some themes, e.g. default theme, since they're in a-tags. *}>
<{* Display first and last move dates if defined, otherwise display game creation date. *}>
<{assign var=chess_date_format_nbsp value=$chess_date_format|replace:' ':'\&\n\b\s\p\;'}>
<{if $chess_start_date and $chess_last_date}>
<{$smarty.const._MD_CHESS_PGN_FULL}> (<{$smarty.const._MD_CHESS_PGN_ABBREV}>)
<{* textarea tag not part of a form, only used for display purposes, and to allow easy copying *}>
<{$smarty.const._MD_CHESS_FEN_FULL}> (<{$smarty.const._MD_CHESS_FEN_ABBREV}>)
<{* textarea tag not part of a form, only used for display purposes, and to allow easy copying *}>
<{strip}>
<{/strip}>