From 0259c5e0ec7e3b66c9624f22d6d1782975af871d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 29 Mar 2018 17:34:22 +0200 Subject: [PATCH] Add clipboard.min.js to layout This is needed for the copy button on file asset uploading. Rather than including it on all pages that could feature the file uploader it's now loaded globally. --- src/templates/layout.pug | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/templates/layout.pug b/src/templates/layout.pug index 744b43f..239f1d5 100644 --- a/src/templates/layout.pug +++ b/src/templates/layout.pug @@ -32,8 +32,7 @@ html(lang="en") script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery-3.1.0.min.js')}}") script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.typeahead-0.11.1.min.js')}}") script(src="{{ url_for('static_pillar', filename='assets/js/vendor/js.cookie-2.0.3.min.js')}}") - - script. + script(src="{{ url_for('static_pillar', filename='assets/js/vendor/clipboard.min.js')}}") | {% if current_user.has_cap('subscriber') %} | {# Only load if we can comment (for converting markdown as-we-type) #}