<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #5616.">Closes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2833541192" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5616" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5616/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5616">#5616</a> as a partial spiritual successor of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1989252607" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4335" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4335/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4335">#4335</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6063'>https://github.com/openstreetmap/openstreetmap-website/pull/6063</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/commits/abee1341f4fe937a56b07af7d8811a87496dd120" class="commit-link">abee134</a>  Write layer sidebar in erb template</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/commits/67e31b019fcc81fdec6d3e7d5b42cffff00cbf4b" class="commit-link">67e31b0</a>  Write share sidebar in erb template</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/commits/763e4c44b98b83bb19deb108887f319845681f59" class="commit-link">763e4c4</a>  Move layer sidebar translations</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/commits/173c4c136088f3c9096d1184232a3d7af9c952e6" class="commit-link">173c4c1</a>  Move share sidebar translations</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/commits/cf2e734591ce15955d9d8bf4feec0a5c193e5edd" class="commit-link">cf2e734</a>  Put key content class in erb and load content only once</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/commits/a6eff7ffe41eb21f1c1301a046ab2ca35d6b160b" class="commit-link">a6eff7f</a>  Add loadContent function to sidebarPane</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/commits/236d14a5075543626ce5deba284d34a54abe740c" class="commit-link">236d14a</a>  Make event handler logic more terse</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files">13 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-debf59904131dc89a88ab44cbb1d6deaaa5a7d70c0507f674080df62f7c8e41f">app/abilities/ability.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-08a7ab143240d1f24d2cfc6f105ae9a1d8bc7fc5d1b95a280cb8a76180e93397">app/assets/javascripts/leaflet.key.js</a>
    (21)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-87e33ea7d5e625dd851a78a3192719681de20caea8edd278a10f5342585c98e7">app/assets/javascripts/leaflet.layers.js</a>
    (118)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-e15f8139afbbcbe98b89298674e7980a4a4500dbc54a431e1325a11adfe83f83">app/assets/javascripts/leaflet.share.js</a>
    (259)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-c4925852e0efd740fa9486b55efb267e4d1f1984fcdcd3125c5d1784b7a0f7a1">app/assets/javascripts/leaflet.sidebar-pane.js</a>
    (6)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-c84e0870621f77ebdbc7dc92019c5e16ea51a6fee9e0f9c96344b563efef7c4c">app/controllers/layers_controller.rb</a>
    (10)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-8f52e03ddddb5d34ba543b34fe41505f557c5d25b2040f5d2b9c1b151184b9bc">app/controllers/shares_controller.rb</a>
    (10)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-7637061d85052c6113258316878007a7f0dc5543cfe4743a3acbc2683782a42d">app/views/layers/show.html.erb</a>
    (32)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-67ee238907e48d9912fbb906191719b1d53dfcb68d484992e2bd8924c8ddb322">app/views/map_keys/show.html.erb</a>
    (2)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-81081ec63e856f67d422ed148957a090cc0852965689f45e6e834ddbf57eb2e6">app/views/shares/show.html.erb</a>
    (85)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (41)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5">config/routes.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063/files#diff-e34d4641ba9894ccb3b643428fbd894a61bd2ec7c49ebde859e8af8e6ffa800b">lib/map_layers.rb</a>
    (5)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6063.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6063.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6063.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6063.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6063">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLN6FUM7DYNBKE33LNL3A4KMLAVCNFSM6AAAAAB6FUUS6SVHI2DSMVQWIX3LMV43ASLTON2WKOZTGEYDANJSGQ4TONA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKMJPMLHLCL52UZ3AD3A4KMLA5CNFSM6AAAAAB6FUUS6SWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLRTSBVY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6063</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6063",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6063",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>