Skip to content
Snippets Groups Projects
Commit 5f1330c1 authored by Kevin Paxman's avatar Kevin Paxman Committed by Eric Bremner
Browse files

ISTWCMS-7242: move show/hide inside main and make only show for logged in...

ISTWCMS-7242: move show/hide inside main and make only show for logged in users with layout builder permission
parent 257960af
No related branches found
No related tags found
1 merge request!252ISTWCMS-7242: move show/hide inside main and make only show for logged in...
{% set main_classes = 'uw-main' %}
<!-- Button for show and hide of admin -->
<button class="uw-show-hide" id="revision-show-hide" title="Show/hide revision elements">±</button>
<!-- end -->
{% for class in classes %}
{% set main_classes = main_classes ~ ' ' ~ class %}
{% endfor %}
......@@ -10,4 +7,11 @@
{% block content %}
Main content
{% endblock %}
{% if logged_in and user.hasPermission('create and edit custom blocks') %}
<!-- Button for show and hide of admin -->
<button class="uw-show-hide" id="revision-show-hide" title="Show/hide revision elements">±</button>
<!-- end -->
{% endif %}
</main>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment