2018-11-27 12:01:36 +01:00
|
|
|
{% macro angel() %}
|
|
|
|
<span class="icon-icon_angel"></span>
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% macro glyphicon(glyph) %}
|
|
|
|
<span class="glyphicon glyphicon-{{ glyph }}"></span>
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% macro alert(message, type) %}
|
|
|
|
<div class="alert alert-{{ type|default('info') }}">{{ message }}</div>
|
|
|
|
{% endmacro %}
|
2020-04-05 16:54:45 +02:00
|
|
|
|
|
|
|
{% macro user(user) %}
|
|
|
|
<a href="{{ url('users', {'action': 'view', 'user_id': user.id}) }}"
|
|
|
|
{%- if not user.state.arrived %} class="text-muted"{% endif -%}
|
|
|
|
>
|
|
|
|
{{ _self.angel() }} {{ user.name }}
|
|
|
|
</a>
|
|
|
|
{% endmacro %}
|
|
|
|
|
2020-12-18 18:27:10 +01:00
|
|
|
{% 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 %}>
|
2020-04-05 16:54:45 +02:00
|
|
|
{{ label }}
|
|
|
|
</a>
|
|
|
|
{% endmacro %}
|
2020-11-24 17:27:21 +01:00
|
|
|
|
|
|
|
{% macro info(text) %}
|
|
|
|
<span class="help-block">{{ _self.glyphicon('info-sign') }}{{ text }}</span>
|
|
|
|
{%- endmacro %}
|