fix overview button

This commit is contained in:
Michael Weimann 2021-07-17 15:38:20 +02:00
parent 162592df7b
commit 9b98503a80
No known key found for this signature in database
GPG Key ID: 34F0524D4DA694A1
2 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,10 @@
<span class="glyphicon glyphicon-{{ glyph }}"></span>
{% endmacro %}
{% macro icon(icon) %}
<span class="bi bi-{{ icon }}"></span>
{% endmacro %}
{% macro alert(message, type) %}
<div class="alert alert-{{ type|default('info') }}">{{ message }}</div>
{% endmacro %}
@ -19,7 +23,7 @@
{% endmacro %}
{% macro button(label, url, type, size, title) %}
<a href="{{ url }}" class="btn btn-{{ type|default('default') }}{% if size %} btn-{{ size }}{% endif %}"{% if title %} title="{{ title }}"{% endif %}>
<a href="{{ url }}" class="btn btn-{{ type|default('primary') }}{% if size %} btn-{{ size }}{% endif %}"{% if title %} title="{{ title }}"{% endif %}>
{{ label }}
</a>
{% endmacro %}

View File

@ -9,7 +9,7 @@
<h1>
{{ 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 %}
</h1>