|
@@ -1,38 +1,26 @@
|
|
|
{% extends "layout/backend.j2" %}
|
|
|
{% block content %}
|
|
|
-<h1>Votes</h1>
|
|
|
-<div class="row">
|
|
|
- <div class="col-sm">
|
|
|
- <div class="card">
|
|
|
- <div class="card-header">
|
|
|
- Votes
|
|
|
- <div class="float-right">
|
|
|
- <a href="{{ url_for('vote.create') }}" class="btn btn-secondary btn-sm">Create</a>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="card-body table-responsive">
|
|
|
- <table class="table table-striped table-sm">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>Name</th>
|
|
|
- <th>Discord</th>
|
|
|
- <th>Rival Regions</th>
|
|
|
- <th>Code</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- {% for user in users %}
|
|
|
- <tr>
|
|
|
- <td>{{ user.name }}</td>
|
|
|
- <td>{{ user.discord }}</td>
|
|
|
- <td>{{ user.game_id }}</td>
|
|
|
- <td>{{ code.get_digest(user.id) }}</td>
|
|
|
- </tr>
|
|
|
- {%- endfor -%}
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+<h1>Codes</h1>
|
|
|
+<div class="table-responsive">
|
|
|
+ <table class="table table-striped table-sm">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>Name</th>
|
|
|
+ <th>Discord</th>
|
|
|
+ <th>Rival Regions</th>
|
|
|
+ <th>Code</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ {% for user in users %}
|
|
|
+ <tr>
|
|
|
+ <td>{{ user.name }}</td>
|
|
|
+ <td>{{ user.discord }}</td>
|
|
|
+ <td><a href="{{ user.game_url() }}" target="_blank">{{ user.game_id }}</a></td>
|
|
|
+ <td>{{ code.get_digest(user.id) }}</td>
|
|
|
+ </tr>
|
|
|
+ {%- endfor -%}
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
{% endblock %}
|