diff --git a/Bundle/BlogBundle/Resources/views/Blog/Tabs/_settings.html.twig b/Bundle/BlogBundle/Resources/views/Blog/Tabs/_settings.html.twig index 59025dc26..a540296d7 100644 --- a/Bundle/BlogBundle/Resources/views/Blog/Tabs/_settings.html.twig +++ b/Bundle/BlogBundle/Resources/views/Blog/Tabs/_settings.html.twig @@ -66,6 +66,9 @@ + {% if not blog.undeletable %} + {{ 'modal.button.delete.title'|trans({}, 'victoire') }} + {% endif %} diff --git a/Bundle/BlogBundle/Resources/views/Blog/index.html.twig b/Bundle/BlogBundle/Resources/views/Blog/index.html.twig index 437e329d3..9d17b5e6e 100644 --- a/Bundle/BlogBundle/Resources/views/Blog/index.html.twig +++ b/Bundle/BlogBundle/Resources/views/Blog/index.html.twig @@ -15,7 +15,4 @@ {% endblock modal_body_content %} {% block modal_footer_content %} - {% if blog and not blog.undeletable %} - {{ 'modal.button.delete.title'|trans({}, 'victoire') }} - {% endif %} {% endblock modal_footer_content %}