Skip to content
Snippets Groups Projects
Commit 100e4ee8 authored by Eric Bremner's avatar Eric Bremner
Browse files

Merge branch 'feature/ISTWCMS-7242-kpaxman-show_hide_fix' into '1.1.x'

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

See merge request !252
parents 257960af 5f1330c1
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' %} {% 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 %} {% for class in classes %}
{% set main_classes = main_classes ~ ' ' ~ class %} {% set main_classes = main_classes ~ ' ' ~ class %}
{% endfor %} {% endfor %}
...@@ -10,4 +7,11 @@ ...@@ -10,4 +7,11 @@
{% block content %} {% block content %}
Main content Main content
{% endblock %} {% 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> </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