<h2>Game Info</h2> <div class="table"> <table class="table"> <tr> <th>My Game</th> <td>{{ game.name.title() }}</td> </tr> <tr> <th>My Name</th> <td>{{ current_user.name.title() }}</td> </tr> <tr> <th>My Role</th> <td>{{ current_user.role_in_game(game).name.title() }}</td> </tr> <tr> <th>Game State</th> <td>{{ game.get_state().name.title() }}</td> </tr> <tr> <th>Start Time</th> <td>{% if game.start_time %}{{ moment(game.start_time).format('DD-MM-YYYY, HH:mm')}}{% else %}-{% endif %}</td> </tr> <tr> <th>End Time</th> <td>{% if game.end_time %}{{ moment(game.end_time).format('DD-MM-YYYY, HH:mm')}}{% else %}-{% endif %}</td> </tr> {% if current_user.role_in_game(game).name == 'bunny' %} <tr> <th>Been Found</th> <td> <span style="color:green;">{{ current_user.player_caught_by_players | selectattr('catching_player', '==', player) | selectattr('review.name', '==', 'accepted') |list|length}}</span> / <span style="color:red;">{{ current_user.player_caught_by_players | selectattr('catching_player', '==', player) | selectattr('review.name', '==', 'denied') |list|length}}</span> / <span style="color:gray;">{{ current_user.player_caught_by_players | selectattr('catching_player', '==', player) | selectattr('review.name', '==', 'none') |list|length}}</span> <span style="font-size: smaller;"> (<span style="color:green;">Accepted</span>/<span style="color:red;">Denied</span>/<span style="color:gray;">Not reviewed</span>) </span> </td> </tr> {% endif %} </table> </div>