-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maria Mafalda Fernando
committed
May 9, 2019
1 parent
150ec9f
commit 735c1c3
Showing
2 changed files
with
52 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,47 @@ | ||
{% if open_play_games %} | ||
<table class="games-table header-primary data-primary"> | ||
<tr class="games-table__header"> | ||
<th class="cell-left"> | ||
<p>Game name</p> | ||
</th> | ||
<th class="cell-left"> | ||
<p>Status</p> | ||
</th> | ||
<th class="cell-left"> | ||
<p>Action</p> | ||
</th> | ||
</tr> | ||
{% for game in open_play_games %} | ||
<tr> | ||
<td> | ||
<div class="games-table__cell"> | ||
<p><small>{{ game.name }}</small></p> | ||
</div> | ||
</td> | ||
<td> | ||
<div class="games-table__cell"> | ||
{% if game.status == 'r' %} | ||
<div class="status-indicator status-indicator--game status-indicator--on"></div> | ||
<small>Running</small> | ||
{% elif game.status == 's' %} | ||
<div class="status-indicator status-indicator--game status-indicator--off"></div> | ||
<small>Stopped</small> | ||
{% elif game.status == 'p' %} | ||
<div class="status-indicator status-indicator--game status-indicator--standby"></div> | ||
<small>Paused</small> | ||
{% endif %} | ||
</div> | ||
</td> | ||
<td> | ||
<div class="games-table__cell"> | ||
<a class="button button--medium button--primary--navigation" href="{% url base_url id=game.id %}">Play</a> | ||
</div> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
<div class="col-sm-8 col-center"> | ||
<table class="games-table header-primary data-primary"> | ||
<tr class="games-table__header"> | ||
<th class="cell-left"> | ||
<p>Game name</p> | ||
</th> | ||
<th class="cell-left"> | ||
<p>Status</p> | ||
</th> | ||
<th class="cell-left"> | ||
<p>Action</p> | ||
</th> | ||
</tr> | ||
{% for game in open_play_games %} | ||
<tr> | ||
<td> | ||
<div class="games-table__cell"> | ||
<p><small>{{ game.name }}</small></p> | ||
</div> | ||
</td> | ||
<td> | ||
<div class="games-table__cell"> | ||
{% if game.status == 'r' %} | ||
<div class="status-indicator status-indicator--game status-indicator--on"></div> | ||
<small>Running</small> | ||
{% elif game.status == 's' %} | ||
<div class="status-indicator status-indicator--game status-indicator--off"></div> | ||
<small>Stopped</small> | ||
{% elif game.status == 'p' %} | ||
<div class="status-indicator status-indicator--game status-indicator--standby"></div> | ||
<small>Paused</small> | ||
{% endif %} | ||
</div> | ||
</td> | ||
<td> | ||
<div class="games-table__buttons"> | ||
<a class="button button--medium button--primary--navigation" href="{% url base_url id=game.id %}">Play</a> | ||
</div> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
{% else %} | ||
<p>It doesn’t look like you have any games created. To create a game, use the ‘Create a new game’ button above.</p> | ||
{% endif %} | ||
{% endif %} |