lien de modification dans le graphe détaillé

This commit is contained in:
Tykayn 2025-07-05 16:34:37 +02:00 committed by tykayn
parent 68c9ed283b
commit c5bf83a4f8
3 changed files with 29 additions and 6 deletions

View file

@ -301,7 +301,8 @@
<span style='font-size:0.95em;'>
${Object.entries(f.properties.tags).map(([k,v]) => `<span><b>${k}</b>: ${v}</span>`).join('<br>')}
</span>
<a href='${f.properties.osm_url}' target='_blank'>Voir sur OSM</a>
<a href='${f.properties.osm_url}' target='_blank'>Voir sur OSM</a><br>
${f.properties.uuid && f.properties.zip_code && f.properties.name ? `<a href='/edit/${f.properties.zip_code}/${encodeURIComponent(f.properties.name)}/${f.properties.uuid}' target='_blank'>📝 Modifier ce lieu</a>` : ''}
</div>
`)
)