From 9b98503a8092a0f03b22758a1308d300bf031bde Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Sat, 17 Jul 2021 15:38:20 +0200 Subject: [PATCH] fix overview button --- resources/views/macros/base.twig | 6 +++++- resources/views/pages/news/overview.twig | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/views/macros/base.twig b/resources/views/macros/base.twig index f3598ea4..3c07ea59 100644 --- a/resources/views/macros/base.twig +++ b/resources/views/macros/base.twig @@ -6,6 +6,10 @@ {% endmacro %} +{% macro icon(icon) %} + +{% endmacro %} + {% macro alert(message, type) %}
{{ message }}
{% endmacro %} @@ -19,7 +23,7 @@ {% endmacro %} {% macro button(label, url, type, size, title) %} - + {{ label }} {% endmacro %} diff --git a/resources/views/pages/news/overview.twig b/resources/views/pages/news/overview.twig index b3198427..b0b5dbd7 100644 --- a/resources/views/pages/news/overview.twig +++ b/resources/views/pages/news/overview.twig @@ -9,7 +9,7 @@

{{ block('title') }} {%- if has_permission_to('admin_news') and is_overview|default(false) -%} - {{ m.button(m.glyphicon('plus'), url('admin/news', only_meetings ? {'meeting': 1} : {})) }} + {{ m.button(m.icon('plus-lg'), url('admin/news', only_meetings ? {'meeting': 1} : {}), 'secondary') }} {%- endif %}