-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(templates): use shipped map code
ApisCore now finally (!) ships its own map overlay code, which we can reuse. Therefore we drop the custom code in the abstractentity_form.html template and adapt the place_external_autocomplete_result.html template accordingly. We also drop the place_autocomplete_result.html template alltogether, because Apis now also comes with an e53_place_autocomplete_result template.
- Loading branch information
Showing
3 changed files
with
9 additions
and
36 deletions.
There are no files selected for viewing
33 changes: 0 additions & 33 deletions
33
apis_ontology/templates/apis_core/apis_entities/abstractentity_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
apis_ontology/templates/apis_ontology/place_autocomplete_result.html
This file was deleted.
Oops, something went wrong.
10 changes: 9 additions & 1 deletion
10
apis_ontology/templates/apis_ontology/place_external_autocomplete_result.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
{% if result.document.coordinates %}<a data-latitude="{{ result.document.coordinates.0 }}" data-longitude="{{ result.document.coordinates.1 }}" title="Map" onmouseenter="showmap(this);" onmouseout="delmap(this);"><span class="material-symbols-outlined material-symbols-align">location_on</span></a>{% endif %} {% if result.highlight.label.snippet %}{{ result.highlight.label.snippet|safe }}{% else %}{{ result.document.label }}{% endif %} {% if result.document.id %}{{ result.document.id|urlize }}{% endif %} | ||
{% if result.document.coordinates %} | ||
<a data-latitude="{{ result.document.coordinates.0|floatformat:"4u" }}" | ||
data-longitude="{{ result.document.coordinates.1|floatformat:"4u" }}" | ||
title="Map" | ||
onmouseenter="showMap(this);" | ||
onmouseout="delMap(this);"><span class="material-symbols-outlined material-symbols-align">location_on</span></a> | ||
{% endif %} | ||
{% if result.highlight.label.snippet %}{{ result.highlight.label.snippet|safe }}{% else %}{{ result.document.label }}{% endif %} | ||
{% if result.document.id %}{{ result.document.id|urlize }}{% endif %} |