diff --git a/templates/horde-map.html.twig b/templates/horde-map.html.twig new file mode 100644 index 0000000..a5e804f --- /dev/null +++ b/templates/horde-map.html.twig @@ -0,0 +1,34 @@ +{% extends 'partials/base.html.twig' %} + +{% block javascripts %} + {% do assets.addJs('https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList') %} + {% do assets.addJs('https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/build/ol.js') %} + {% do assets.addJs('https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js') %} + + {{ parent() }} + +{% endblock %} + +{% block stylesheets %} + {% do assets.addCss('https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/css/ol.css') %} + {% do assets.addCss('/horde-map/assets/map.css') %} + + {{ parent() }} + +{% endblock %} + +{% block bottom %} + {{ parent() }} + + {% do assets.addJs('/horde-map/assets/map.js') %} + + {{ assets.js() }} + +{% endblock %} + +{% block content %} + {{ page.content }} + +
+ +{% endblock %}