You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.5 KiB

  1. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 mb-12">
  2. <div class="card" id="game-list">
  3. <div class="card-body" style="padding-bottom: 0 !important;">
  4. <h5 class="card-title" style="margin-bottom: 1.25rem !important;">Games In Progress</h5>
  5. {% if user %}
  6. <table class="table table-borderless" id="game-table">
  7. <thead>
  8. <tr>
  9. <th style="vertical-align: middle;">Game</th>
  10. <th style="width: 50px; text-align: center; font-weight: normal;"><a href="#game-table" class="text-primary" data-toggle="modal" data-target="#modalNewGame">Add</a></th>
  11. </tr>
  12. </thead>
  13. <tbody>
  14. {% if game_list is defined and account_url != [] %}
  15. {% for game in game_list %}
  16. <tr>
  17. <th><a href="{{ game[3] }}" class="game-link">{{ game[2] }}</a></th>
  18. <td style="vertical-align: middle;"><a href="#game-table" onclick="deleteGame({{ game[0] }})" class="text-danger">Delete</a></td>
  19. </tr>
  20. {% endfor %}
  21. {% endif %}
  22. </tbody>
  23. </table>
  24. <div style="text-align: center;">
  25. <a href="/logout" class="text-warning">Log out</a>
  26. <br><br>
  27. </div>
  28. {% else %}
  29. <div style="text-align: center;">
  30. <a href="/login" class="text-success">Log in</a>
  31. <br><br>
  32. </div>
  33. {% endif %}
  34. </div>
  35. </div>
  36. </div>