From 531f8f8f78bd53d1d67d9f156890f9e065e1706d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Sat, 30 Mar 2019 21:12:56 +0100 Subject: [PATCH] Add horde-map template --- templates/horde-map.html.twig | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 templates/horde-map.html.twig 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 %}