Fix note link

This commit is contained in:
Ilya Zverev 2016-06-14 17:42:17 +03:00
parent 852f0673e4
commit 630a0bf1e6

View file

@ -94,8 +94,12 @@
<h2>Changes</h2>
{% for change in changes %}
<div class="change">
<a href="https://www.openstreetmap.org/user/{{ change.user }}">{{ change.user }}</a><sup><a href="{{ purl(params, user=change.user) }}">&#9875;</a></sup> at {{ change.timestamp.strftime('%d.%m.%Y %H:%M') }}
in <a href="https://www.openstreetmap.org/changeset/{{ change.changeset }}">{{ change.changeset }}</a><sup><a href="{{ purl(params, changeset=change.changeset) }}">&#9875;</a></sup>: {{ change.explain_action() }}
<a href="https://www.openstreetmap.org/user/{{ change.user }}">{{ change.user }}</a><sup><a href="{{ purl(params, user=change.user) }}">&#9875;</a></sup> at {{ change.timestamp.strftime('%d.%m.%Y %H:%M') }} in
{% if change.action == 'n' %}
<a href="https://www.openstreetmap.org/note/{{ change.changeset }}">{{ change.changeset }}</a>: {{ change.explain_action() }}
{% else %}
<a href="https://www.openstreetmap.org/changeset/{{ change.changeset }}">{{ change.changeset }}</a><sup><a href="{{ purl(params, changeset=change.changeset) }}">&#9875;</a></sup>: {{ change.explain_action() }}
{% endif %}
{% if change.obj_type %}
<a href="https://www.openstreetmap.org/{{ {'n':'node', 'w':'way', 'r':'relation'}[change.obj_type] }}/{{ change.obj_id }}">{{ change.main_tag or '' }}</a>
<sup>