diff --git a/src/patterns/03-layouts/content/content.twig b/src/patterns/03-layouts/content/content.twig index 0086385ebb42e2f4fc8f966cee47bf4dd2ea2e85..326a808fca770eba9d7fb946f431aeeb475698ac 100644 --- a/src/patterns/03-layouts/content/content.twig +++ b/src/patterns/03-layouts/content/content.twig @@ -1,7 +1,4 @@ {% 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>