fix overview button
This commit is contained in:
parent
162592df7b
commit
9b98503a80
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue