summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanne Moa <hanne.moa@uninett.no>2016-10-25 14:18:58 +0200
committerHanne Moa <hanne.moa@uninett.no>2016-10-25 14:19:06 +0200
commit00675b11e60ad9a568aba775ab3e56bf6abd0ba0 (patch)
tree8b138e0c75b298145596b989cc44e71c0bb5b02f
parent47f88404e728123a39c24d834ae90c293a9db39d (diff)
downloadsimplesamlphp-00675b11e60ad9a568aba775ab3e56bf6abd0ba0.zip
simplesamlphp-00675b11e60ad9a568aba775ab3e56bf6abd0ba0.tar.gz
simplesamlphp-00675b11e60ad9a568aba775ab3e56bf6abd0ba0.tar.bz2
Load clipboard-support, if turned on
Note that the flag in the context must be named 'clipboard', not 'clipboard.js'. This is because the dot is an illegal symbol in variable names in twig.
-rw-r--r--templates/base.twig3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/base.twig b/templates/base.twig
index bdce5e0..c97e51c 100644
--- a/templates/base.twig
+++ b/templates/base.twig
@@ -28,5 +28,8 @@
<!-- postload javascript -->
<script type="text/javascript" src="/{{ baseurlpath }}resources/script.js"></script>
+ {% if clipboard %}
+ <script type="text/javascript" src="/{{ baseurlpath }}resources/clipboard.min.js"></script>
+ {% endif %}
{% block postload %}{% endblock %}
</body></html>