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 mediagoblin_head %}
|
||||
<link rel="stylesheet"
|
||||
href="{{ request.staticdirect('/extlib/leaflet/leaflet.css') }}" />
|
||||
<!--[if lte IE 8]><link rel="stylesheet"
|
||||
href="{{ request.staticdirect('/extlib/leaflet/leaflet.ie.css') }}" /><![endif]-->
|
||||
<script type="text/javascript"
|
||||
src="{{ request.staticdirect('/js/comment_show.js') }}"></script>
|
||||
<script type="text/javascript"
|
||||
src="{{ request.staticdirect('/extlib/leaflet/leaflet.js') }}"></script>
|
||||
<script type="text/javascript"
|
||||
src="{{ request.staticdirect('/js/geolocation-map.js') }}"></script>
|
||||
|
||||
{% if app_config['geolocation_map_visible'] %}
|
||||
<link rel="stylesheet"
|
||||
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 %}
|
||||
|
||||
{% block mediagoblin_content %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user