|
|
@ -9,7 +9,7 @@ |
|
|
|
{% block app_content %} |
|
|
|
{% block app_content %} |
|
|
|
<h1>{{ game.name }} Dashboard</h1> |
|
|
|
<h1>{{ game.name }} Dashboard</h1> |
|
|
|
|
|
|
|
|
|
|
|
<h2>Objectives:</h2> |
|
|
|
<h2>Objective Locations:</h2> |
|
|
|
{% if game.objectives %} |
|
|
|
{% if game.objectives %} |
|
|
|
<div class="table-responsive"> |
|
|
|
<div class="table-responsive"> |
|
|
|
<table class="table"> |
|
|
|
<table class="table"> |
|
|
@ -18,9 +18,7 @@ |
|
|
|
<th scope="col">Objective Name</th> |
|
|
|
<th scope="col">Objective Name</th> |
|
|
|
<th scope="col">Latitude</th> |
|
|
|
<th scope="col">Latitude</th> |
|
|
|
<th scope="col">Longitude</th> |
|
|
|
<th scope="col">Longitude</th> |
|
|
|
<th scope="col">Times found</th> |
|
|
|
<th scope="col">Found</th> |
|
|
|
<th scope="col">Hash</th> |
|
|
|
|
|
|
|
<th scope="col"></th> |
|
|
|
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
@ -29,11 +27,7 @@ |
|
|
|
<td>{{ objective.name }}</td> |
|
|
|
<td>{{ objective.name }}</td> |
|
|
|
<td>{{ objective.latitude }}</td> |
|
|
|
<td>{{ objective.latitude }}</td> |
|
|
|
<td>{{ objective.longitude }}</td> |
|
|
|
<td>{{ objective.longitude }}</td> |
|
|
|
<td>{{ objective.found_by|length }}</td> |
|
|
|
<td>{{ 'Yes' if current_user.player_in(game) in objective.objective_found_by else 'No' }}</td> |
|
|
|
<td><a href="{{ url_for('main.objective', objective_hash = objective.hash) }}">{{ objective.hash }}</a></td> |
|
|
|
|
|
|
|
<td><a href="{{ url_for('main.delete_objective', objective_hash = objective.hash) }}"> |
|
|
|
|
|
|
|
<button class="btn btn-danger">Delete</button></a> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|