remove navigation between c3nav features, the app has its own navigation
This commit is contained in:
parent
b59ece6aab
commit
954152c097
3 changed files with 6 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
|||
{% block content %}
|
||||
<main class="control"{% block addattributes %}{% endblock %}>
|
||||
{% include 'site/fragment_messages.html' %}
|
||||
{% block back_link %}<a href="{% url 'site.index' %}" class="float-right">« {% trans 'back to c3nav' %}</a>{% endblock %}
|
||||
{% block back_link %}{% if not request.mobileclient %}<a href="{% url 'site.index' %}" class="float-right">« {% trans 'back to c3nav' %}</a>{% endif %}{% endblock %}
|
||||
<h2>{% block heading %}{% endblock %}</h2>
|
||||
{% block menu %}
|
||||
<nav>
|
||||
|
|
|
@ -1029,9 +1029,10 @@ c3nav = {
|
|||
crs: L.CRS.Simple,
|
||||
maxBounds: L.GeoJSON.coordsToLatLngs(c3nav._get_padded_max_bounds(minZoom)),
|
||||
zoomSnap: 0,
|
||||
zoomControl: false
|
||||
zoomControl: false,
|
||||
attributionControl: !window.mobileclient,
|
||||
});
|
||||
c3nav.map.attributionControl.setPrefix($('#attributions').html());
|
||||
if (!window.mobileclient) c3nav.map.attributionControl.setPrefix($('#attributions').html());
|
||||
if (L.Browser.chrome && !('ontouchstart' in window)) {
|
||||
$('.leaflet-touch').removeClass('leaflet-touch');
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
{% block content %}
|
||||
<main class="map" data-state="{{ state }}"{% if embed %} data-embed{% endif %} data-last-site-update="{{ last_site_update }}"{% if ssids %} data-ssids="{{ ssids }}"{% endif %}>
|
||||
{% if not request.mobileclient %}
|
||||
<section id="attributions">
|
||||
{% if not embed %}
|
||||
{% get_current_language as CURRENT_LANGUAGE %}
|
||||
|
@ -17,6 +18,7 @@
|
|||
<a href="https://twitter.com/c3nav/" rel="external" target="_blank">Twitter</a> //
|
||||
<a href="https://github.com/c3nav/c3nav/" rel="external" target="_blank">GitHub</a>
|
||||
</section>
|
||||
{% endif %}
|
||||
<section id="map" data-bounds="{{ bounds }}"
|
||||
data-levels="{{ levels }}"
|
||||
{% if tile_cache_server %}data-tile-server="{{ tile_cache_server }}"{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue