Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
next.freemap.sk #142 - dd/dt/dl for changeset detail
const message = (
<dl className="dl-horizontal">
<dt>Autor:</dt>
<dd>
<a
href={`https://www.openstreetmap.org/user/${encodeURIComponent(changeset.userName)}`}
target="_blank"
rel="noopener noreferrer"
>{changeset.userName}</a>
</dd>
<dt>Popis:</dt>
<dd>
{changeset.description || '/bez popisu/'}
</dd>
<dt>Čas:</dt>
<dd>
{strftime('%d. %m. %H:%M', changeset.closedAt)}
</dd>
<dt>Viac info:</dt>
<dd>
<a
href={`https://www.openstreetmap.org/changeset/${changeset.id}`}
target="_blank"
rel="noopener noreferrer"
>osm.org</a>,{' '}
<a
href={`https://overpass-api.de/achavi/?changeset=${changeset.id}`}
target="_blank"
rel="noopener noreferrer"
>Achavi</a>
</dd>
</dl>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.