remove navigation between c3nav features, the app has its own navigation

This commit is contained in:
Laura Klünder 2018-11-26 01:34:55 +01:00
parent b59ece6aab
commit 954152c097
3 changed files with 6 additions and 3 deletions

View file

@ -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">&laquo; {% trans 'back to c3nav' %}</a>{% endblock %}
{% block back_link %}{% if not request.mobileclient %}<a href="{% url 'site.index' %}" class="float-right">&laquo; {% trans 'back to c3nav' %}</a>{% endif %}{% endblock %}
<h2>{% block heading %}{% endblock %}</h2>
{% block menu %}
<nav>

View file

@ -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');
}

View file

@ -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 %}