link to Editor, API and GitHub in attribution
This commit is contained in:
parent
baaec3cc9b
commit
66547f27e7
3 changed files with 7 additions and 1 deletions
|
@ -436,7 +436,7 @@ main:not([data-view=route-result]) #route-dots {
|
|||
color: #b2b2b2;
|
||||
}
|
||||
|
||||
#popup-buttons {
|
||||
#popup-buttons, #attributions {
|
||||
display: none;
|
||||
}
|
||||
.location-popup .leaflet-popup-content {
|
||||
|
|
|
@ -787,6 +787,7 @@ c3nav = {
|
|||
zoomSnap: 0,
|
||||
zoomControl: false
|
||||
});
|
||||
c3nav.map.attributionControl.setPrefix($('#attributions').html());
|
||||
if (L.Browser.chrome && !('ontouchstart' in window)) {
|
||||
$('.leaflet-touch').removeClass('leaflet-touch');
|
||||
}
|
||||
|
|
|
@ -5,6 +5,11 @@
|
|||
|
||||
{% block content %}
|
||||
<main class="map" data-state="{{ state }}"{% if embed %} data-embed{% endif %}>
|
||||
<section id="attributions">
|
||||
<a href="{% url 'editor.index' %}" target="_blank">{% trans 'Editor' %}</a> //
|
||||
<a href="/api/" target="_blank">{% trans 'API' %}</a> //
|
||||
<a href="https://github.com/c3nav/c3nav/" rel="external" target="_blank">{% trans 'GitHub' %}</a>
|
||||
</section>
|
||||
<section id="map" data-bounds="{{ bounds }}" data-levels="{{ levels }}"{% if tile_cache_server %} data-tile-server="{{ tile_cache_server }}"{% endif %}></section>
|
||||
{% if not embed %}
|
||||
<section id="popup-buttons">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue