|
|
@ -1,11 +1,19 @@ |
|
|
|
{% extends 'player_base.html' %} |
|
|
|
{% extends 'player_base.html' %} |
|
|
|
|
|
|
|
|
|
|
|
{% block player_app_content %} |
|
|
|
{% block player_app_content %} |
|
|
|
<h1>Hi, {{ current_user.name }}!</h1> |
|
|
|
<div class="row"> |
|
|
|
|
|
|
|
<div class="col-xs-0 col-md-1"></div> |
|
|
|
|
|
|
|
<div class="col-xs-12 col-md-10"> |
|
|
|
<h2>My games:</h2> |
|
|
|
<h2>My games:</h2> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-xs-0 col-md-1"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{% if current_user.games %} |
|
|
|
{% if current_user.games %} |
|
|
|
<div class="table-responsive"> |
|
|
|
<div class="row"> |
|
|
|
|
|
|
|
<div class="col-xs-0 col-md-1"></div> |
|
|
|
|
|
|
|
<div class="col-xs-12 col-md-10"> |
|
|
|
|
|
|
|
<div class="table"> |
|
|
|
<table class="table"> |
|
|
|
<table class="table"> |
|
|
|
<thead> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
@ -20,12 +28,12 @@ |
|
|
|
{% for game in current_user.games %} |
|
|
|
{% for game in current_user.games %} |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><a href="{{ url_for('main.game_dashboard', game_name = game.name) }}">{{ game.name }}</a></td> |
|
|
|
<td><a href="{{ url_for('main.game_dashboard', game_name = game.name) }}">{{ game.name }}</a></td> |
|
|
|
<td>{{ game.state.name}}</td> |
|
|
|
<td>{{ game.state.name.title() }}</td> |
|
|
|
<td>{{ game.start_time }}</td> |
|
|
|
<td>{{ game.start_time }}</td> |
|
|
|
<td>{{ game.end_time }}</td> |
|
|
|
<td>{{ game.end_time }}</td> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
{% for gameplayer in current_user.user_games if gameplayer.game == game %} |
|
|
|
{% for gameplayer in current_user.user_games if gameplayer.game == game %} |
|
|
|
{{ gameplayer.role.name }} |
|
|
|
{{ gameplayer.role.name.title() }} |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
@ -33,6 +41,10 @@ |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-xs-0 col-md-1"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<div class="alert alert-info" role="alert"> |
|
|
|
<div class="alert alert-info" role="alert"> |
|
|
|
You don't participate in any game yet 😢 |
|
|
|
You don't participate in any game yet 😢 |
|
|
|