Browse Source

fix kadaster copyright, work on issue #15

testing
Burathar 4 years ago
parent
commit
4a6f6bcb0a
  1. 10
      app/templates/_game_player_info.html
  2. 2
      app/templates/game_bunny_dashboard.html
  3. 6
      app/templates/game_hunter_dashboard.html
  4. 2
      app/templates/game_owner_dashboard.html
  5. 2
      app/templates/objective.html
  6. 2
      app/templates/player.html

10
app/templates/_game_player_info.html

@ -3,15 +3,19 @@ @@ -3,15 +3,19 @@
<table class="table">
<tr>
<th>My Role</th>
<td>{{ current_user.}}</td>
<td>{{ current_user.role_in_game(game).name }}</td>
</tr>
<tr>
<th>Game State</th>
<td>{{ game.state.name }}</td>
</tr>
<tr>
<th>Start Time</th>
<td>10:00</td>
<td>{% if game.start_time %}{{ moment(game.start_time).format('DD-MM-YYYY, hh:mm')}}{% else %}-{% endif %}</td>
</tr>
<tr>
<th>End Time</th>
<td>18:00</td>
<td>{% if game.end_time %}{{ moment(game.end_time).format('DD-MM-YYYY, hh:mm')}}{% else %}-{% endif %}</td>
</tr>
</table>

2
app/templates/game_bunny_dashboard.html

@ -98,7 +98,7 @@ @@ -98,7 +98,7 @@
L.control.scale().addTo(map);
L.tileLayer( 'https://geodata.nationaalgeoregister.nl/tiles/service/wmts/brtachtergrondkaartpastel/EPSG:3857/{z}/{x}/{y}.png', {
attribution: 'Kaartgegevens &copy; <a href="kadaster.nl">Kadaster</a>'
attribution: 'Kaartgegevens &copy; <a href="https://kadaster.nl">Kadaster</a>'
}).addTo( map );
var objectives = JSON.parse('{{ json.dumps(game.objectives, cls=objective_encoder)|safe }}')

6
app/templates/game_hunter_dashboard.html

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
{% endblock %}
{% block app_content %}
<h1>{{ game.name }} Dashboard</h1>
<h1>{{ game.name }}: {{ current_user.name }}</h1>
{% include '_game_player_info.html' %}
<h2>Bunnies:</h2>
<div class="table-responsive">
@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
{% for player in game.bunnies() %}
<tr>
<td>{{ player.name }}</td>
<td>{{ player.caught_by_players | selectattr('game', '==', game)|list|length}}</td>
<td>{{ player.caught_by_players | selectattr('game', '==', game) | selectattr('catching_player', '==', current_user) |list|length}}</td>
<td>{% with location = player.last_location(game) %}
{% if location %}{{ moment(location.timestamp).fromNow()}}: {% endif %}
{{ location }}
@ -52,7 +52,7 @@ @@ -52,7 +52,7 @@
L.control.scale().addTo(map);
L.tileLayer( 'https://geodata.nationaalgeoregister.nl/tiles/service/wmts/brtachtergrondkaartpastel/EPSG:3857/{z}/{x}/{y}.png', {
attribution: 'Kaartgegevens &copy; <a href="kadaster.nl">Kadaster</a>'
attribution: 'Kaartgegevens &copy; <a href="https://kadaster.nl">Kadaster</a>'
}).addTo( map );
var greenIcon = new L.Icon({

2
app/templates/game_owner_dashboard.html

@ -98,7 +98,7 @@ @@ -98,7 +98,7 @@
L.control.scale().addTo(map);
L.tileLayer( 'https://geodata.nationaalgeoregister.nl/tiles/service/wmts/brtachtergrondkaartpastel/EPSG:3857/{z}/{x}/{y}.png', {
attribution: 'Kaartgegevens &copy; <a href="kadaster.nl">Kadaster</a>'
attribution: 'Kaartgegevens &copy; <a href="https://kadaster.nl">Kadaster</a>'
}).addTo( map );
var objectives = JSON.parse('{{ json.dumps(game.objectives, cls=objective_encoder)|safe }}')

2
app/templates/objective.html

@ -69,7 +69,7 @@ @@ -69,7 +69,7 @@
L.control.scale().addTo(map);
L.tileLayer( 'https://geodata.nationaalgeoregister.nl/tiles/service/wmts/brtachtergrondkaartpastel/EPSG:3857/{z}/{x}/{y}.png', {
attribution: 'Kaartgegevens &copy; <a href="kadaster.nl">Kadaster</a>'
attribution: 'Kaartgegevens &copy; <a href="https://kadaster.nl">Kadaster</a>'
}).addTo( map );
if ('{{ owner }}' == 'True'){

2
app/templates/player.html

@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
L.control.scale().addTo(map);
L.tileLayer( 'https://geodata.nationaalgeoregister.nl/tiles/service/wmts/brtachtergrondkaartpastel/EPSG:3857/{z}/{x}/{y}.png', {
attribution: 'Kaartgegevens &copy; <a href="kadaster.nl">Kadaster</a>'
attribution: 'Kaartgegevens &copy; <a href="https://kadaster.nl">Kadaster</a>'
}).addTo( map );
var greenIcon = new L.Icon({

Loading…
Cancel
Save