Rogier Neeleman
4 years ago
6 changed files with 97 additions and 49 deletions
@ -1,21 +1,29 @@ |
|||||||
<h2>Game Info</h2> |
<h2>Game Info</h2> |
||||||
<div class="table-responsive"> |
<div class="table"> |
||||||
<table class="table"> |
<table class="table"> |
||||||
<tr> |
<tr> |
||||||
<th>My Role</th> |
<th>My Game</th> |
||||||
<td>{{ current_user.role_in_game(game).name }}</td> |
<td>{{ game.name.title() }}</td> |
||||||
</tr> |
</tr> |
||||||
<tr> |
<tr> |
||||||
<th>Game State</th> |
<th>My Name</th> |
||||||
<td>{{ game.state.name }}</td> |
<td>{{ current_user.name.title() }}</td> |
||||||
</tr> |
</tr> |
||||||
<tr> |
<tr> |
||||||
<th>Start Time</th> |
<th>My Role</th> |
||||||
<td>{% if game.start_time %}{{ moment(game.start_time).format('DD-MM-YYYY, hh:mm')}}{% else %}-{% endif %}</td> |
<td>{{ current_user.role_in_game(game).name.title() }}</td> |
||||||
</tr> |
</tr> |
||||||
<tr> |
<tr> |
||||||
<th>End Time</th> |
<th>Game State</th> |
||||||
<td>{% if game.end_time %}{{ moment(game.end_time).format('DD-MM-YYYY, hh:mm')}}{% else %}-{% endif %}</td> |
<td>{{ game.state.name.title() }}</td> |
||||||
</tr> |
</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> |
||||||
</table> |
</table> |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue