Only load clipboard.min.js when authenticated

This is used in the attachments form, which is only available to
authenticated users.
This commit is contained in:
2018-04-03 11:27:20 +02:00
parent a052e754f9
commit 1cb3a24e2f

View File

@@ -32,7 +32,9 @@ 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')}}")
| {% if current_user.is_authenticated %}
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/clipboard.min.js')}}")
| {% endif %}
script.