Scripts and styleshets for geolocation map - Conditional
Scripts and stylesheets for the geolocation map are now switched on/off with the geolocation map itself.
This commit is contained in:
parent
184dbcdacc
commit
cd1b836ed4
@ -23,16 +23,20 @@
|
|||||||
{% block title %}{{ media.title }} — {{ super() }}{% endblock %}
|
{% block title %}{{ media.title }} — {{ super() }}{% endblock %}
|
||||||
|
|
||||||
{% block mediagoblin_head %}
|
{% block mediagoblin_head %}
|
||||||
<link rel="stylesheet"
|
|
||||||
href="{{ request.staticdirect('/extlib/leaflet/leaflet.css') }}" />
|
|
||||||
<!--[if lte IE 8]><link rel="stylesheet"
|
<!--[if lte IE 8]><link rel="stylesheet"
|
||||||
href="{{ request.staticdirect('/extlib/leaflet/leaflet.ie.css') }}" /><![endif]-->
|
href="{{ request.staticdirect('/extlib/leaflet/leaflet.ie.css') }}" /><![endif]-->
|
||||||
<script type="text/javascript"
|
<script type="text/javascript"
|
||||||
src="{{ request.staticdirect('/js/comment_show.js') }}"></script>
|
src="{{ request.staticdirect('/js/comment_show.js') }}"></script>
|
||||||
<script type="text/javascript"
|
|
||||||
src="{{ request.staticdirect('/extlib/leaflet/leaflet.js') }}"></script>
|
{% if app_config['geolocation_map_visible'] %}
|
||||||
<script type="text/javascript"
|
<link rel="stylesheet"
|
||||||
src="{{ request.staticdirect('/js/geolocation-map.js') }}"></script>
|
href="{{ request.staticdirect('/extlib/leaflet/leaflet.css') }}" />
|
||||||
|
|
||||||
|
<script type="text/javascript"
|
||||||
|
src="{{ request.staticdirect('/extlib/leaflet/leaflet.js') }}"></script>
|
||||||
|
<script type="text/javascript"
|
||||||
|
src="{{ request.staticdirect('/js/geolocation-map.js') }}"></script>
|
||||||
|
{% endif %}
|
||||||
{% endblock mediagoblin_head %}
|
{% endblock mediagoblin_head %}
|
||||||
|
|
||||||
{% block mediagoblin_content %}
|
{% block mediagoblin_content %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user