up
This commit is contained in:
parent
a17fd9c232
commit
8bce5fe21c
14 changed files with 628 additions and 634 deletions
|
@ -18,7 +18,7 @@
|
|||
<h1>Commerces fermés</h1>
|
||||
<p>Voici la liste des commerces fermés :</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<table class="table table-striped js-sort-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom du commerce</th>
|
||||
|
|
|
@ -122,12 +122,12 @@
|
|||
}
|
||||
|
||||
// Créer une carte des villes avec les codes postaux
|
||||
{# let map = new maplibregl.Map({
|
||||
let map = new maplibregl.Map({
|
||||
container: 'mapDashboard',
|
||||
style: 'https://api.maptiler.com/maps/basic-v2/style.json?key={{ maptiler_token }}',
|
||||
center: [2.3488, 48.8534], // Paris
|
||||
zoom: 10
|
||||
}); #}
|
||||
});
|
||||
|
||||
// Fonction pour obtenir la couleur selon le pourcentage
|
||||
function getColorFromPercent(percent) {
|
||||
|
@ -190,7 +190,7 @@ out skel qt;`;
|
|||
{# <div id="mapDashboard"></div> #}
|
||||
|
||||
|
||||
<table class="table table-hover table-striped table-responsive">
|
||||
<table class="table table-hover table-striped table-responsive js-sort-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Zone</th>
|
||||
|
|
|
@ -135,12 +135,12 @@
|
|||
<span class="last-modification">{{ 'display.last_modification'|trans }}: {{ commerce_overpass['@attributes'].timestamp }}</span>,
|
||||
<strong>{{ 'display.days_ago'|trans({'%days%': date(commerce_overpass['@attributes'].timestamp).diff(date()).days}) }}</strong>
|
||||
{{ 'display.by'|trans }}
|
||||
<a href="https://www.openstreetmap.org/user/{{ commerce_overpass['@attributes'].user }}" target="_blank">{{ commerce_overpass['@attributes'].user }}</a>
|
||||
<a href="https://www.openstreetmap.org/user/{{ commerce_overpass['@attributes'].user }}" >{{ commerce_overpass['@attributes'].user }}</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="lien-OpenStreetMap">
|
||||
<a href="https://www.openstreetmap.org/{{commerce.osmKind}}/{{ commerce_overpass['@attributes'].id }}" target="_blank" class="btn btn-outline-secondary">
|
||||
<a href="https://www.openstreetmap.org/{{commerce.osmKind}}/{{ commerce_overpass['@attributes'].id }}" class="btn btn-outline-secondary">
|
||||
{{ 'display.view_on_osm'|trans }}
|
||||
</a>
|
||||
<button onclick="openInJOSM('{{commerce.osmKind}}', '{{ commerce_overpass['@attributes'].id }}')" class="btn btn-outline-secondary ms-2">
|
||||
|
@ -183,14 +183,14 @@
|
|||
<script>
|
||||
function openInJOSM(type, id) {
|
||||
const josmUrl = `http://localhost:8111/load_object?objects=${type}${id}`;
|
||||
window.open(josmUrl, '_blank');
|
||||
window.open(josmUrl);
|
||||
}
|
||||
|
||||
function openInPanoramax() {
|
||||
const center = map.getCenter();
|
||||
const zoom = map.getZoom();
|
||||
const panoramaxUrl = `https://api.panoramax.xyz/?focus=map&map=${zoom}/${center.lat}/${center.lng}`;
|
||||
window.open(panoramaxUrl, '_blank');
|
||||
window.open(panoramaxUrl);
|
||||
}
|
||||
|
||||
{% if commerce is not empty and mapbox_token is not empty and maptiler_token is not empty and commerce_overpass['@attributes'].lon is defined and commerce_overpass['@attributes'].lat is defined %}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div class="row">
|
||||
<div class="col-12 col-md-6 ">
|
||||
<h2>Lieux modifiés</h2>
|
||||
<table class="table table-striped table-hover table-responsive">
|
||||
<table class="table table-striped table-hover table-responsive js-sort-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
|
@ -33,7 +33,7 @@
|
|||
</div>
|
||||
<div class="col-12 col-md-6 ">
|
||||
<h2>Lieux affichés</h2>
|
||||
<table class="table table-striped table-hover table-responsive">
|
||||
<table class="table table-striped table-hover table-responsive js-sort-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{% block body %}
|
||||
<div class="container">
|
||||
<h1>Commerces avec une note</h1>
|
||||
<table class="table table-striped">
|
||||
<table class="table table-striped js-sort-table table-hover table-responsive">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue