diff --git a/umap/static/umap/img/16-white.png b/umap/static/umap/img/16-white.png index 74e2ad64..f7eea928 100644 Binary files a/umap/static/umap/img/16-white.png and b/umap/static/umap/img/16-white.png differ diff --git a/umap/static/umap/img/16-white.svg b/umap/static/umap/img/16-white.svg index e5595623..46d7d5e1 100644 --- a/umap/static/umap/img/16-white.svg +++ b/umap/static/umap/img/16-white.svg @@ -2,22 +2,22 @@ + inkscape:export-filename="16-white.png" + inkscape:export-xdpi="96" + inkscape:export-ydpi="96" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> + inkscape:snap-to-guides="true" + inkscape:showpageshadow="2" + inkscape:pagecheckerboard="0" + inkscape:deskcolor="#d1d1d1">   + style="font-size:30.4762px;line-height:1.25;font-family:sans-serif">  + diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 036a7abf..909f0a6d 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -2021,10 +2021,14 @@ L.U.Map.include({ setName = function () { name.textContent = this.getDisplayName() } + if (this.options.user) { + const userLabel = L.DomUtil.add('a', 'umap-user', title, this.options.user.name) + userLabel.href = this.options.user.url + } L.bind(setName, this)() L.DomEvent.on(name, 'click', this.edit, this) this.on('postsync', L.bind(setName, this)) - this.help.button(title, 'edit') + this.help.button(name, 'edit') const save = L.DomUtil.create('a', 'leaflet-control-edit-save button', container) save.href = '#' save.title = `${L._('Save current edits')} (Ctrl+S)` diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index 6aed75b1..d7e3f0e9 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -430,6 +430,16 @@ ul.photon-autocomplete { .umap-main-edit-toolbox h3 { display: inline; } +.umap-main-edit-toolbox .umap-user:before { + content: '|'; + color: #fff; + padding-right: 10px; + background-image: url('./img/16-white.png'); + background-repeat: no-repeat; + display: inline-block; + background-position: -80px -202px; + width: 20px; +} .umap-edit-enabled .leaflet-top { top: 48px; }