fix overview button
This commit is contained in:
parent
162592df7b
commit
9b98503a80
|
@ -6,6 +6,10 @@
|
||||||
<span class="glyphicon glyphicon-{{ glyph }}"></span>
|
<span class="glyphicon glyphicon-{{ glyph }}"></span>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
{% macro icon(icon) %}
|
||||||
|
<span class="bi bi-{{ icon }}"></span>
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro alert(message, type) %}
|
{% macro alert(message, type) %}
|
||||||
<div class="alert alert-{{ type|default('info') }}">{{ message }}</div>
|
<div class="alert alert-{{ type|default('info') }}">{{ message }}</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
@ -19,7 +23,7 @@
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro button(label, url, type, size, title) %}
|
{% 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 }}
|
{{ label }}
|
||||||
</a>
|
</a>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<h1>
|
<h1>
|
||||||
{{ block('title') }}
|
{{ block('title') }}
|
||||||
{%- if has_permission_to('admin_news') and is_overview|default(false) -%}
|
{%- 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 %}
|
{%- endif %}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue