bring set position UI back

This commit is contained in:
Laura Klünder 2024-09-17 14:35:33 +02:00
parent c546f007c1
commit f07ceed450
2 changed files with 7 additions and 0 deletions

View file

@ -1579,6 +1579,7 @@ c3nav = {
}, 'autoPanPaddingTopLeft', 'autoPanPaddingBottomRight'));
var buttons = $('#location-popup-buttons').clone();
buttons.find('.report').attr('href', '/report/l/' + String(data.id) + '/');
buttons.find('.set-position').attr('href', '/positions/set/' + name + '/');
newpopup.setLatLng(latlng).setContent(c3nav._build_location_html(data) + buttons.html());
c3nav._click_anywhere_popup = newpopup;
newpopup.on('remove', function () {

View file

@ -86,6 +86,12 @@
{% trans 'Report issue' %}
</a>
</div>
<div class="buttons position-buttons">
<a class="button button-clear set-position">
<i class="material-symbols">my_location</i>
{% trans 'Set my position' %}
</a>
</div>
</section>
<section class="share-ui">
<h3>{% trans 'Share' %}</h3>