add column '2fa status' for customers and admins
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -29,6 +29,16 @@
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro type2fa(data) %}
|
||||
{% if (data == 1) %}
|
||||
<i class="fa-solid fa-envelope text-success"></i>
|
||||
{% elseif (data == 2) %}
|
||||
<i class="fa-solid fa-mobile text-success"></i>
|
||||
{% else %}
|
||||
<i class="fa-solid fa-lock-open text-warning"></i>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro link(data) %}
|
||||
{% apply spaceless %}
|
||||
<a href="{{ data.href }}" {% if data.class is defined %} class="{{ data.class }}" {% endif %} {% if data.target is defined %} target="{{ data.target }}" {% endif %} {% if data.title is defined %} title="{{ data.title }}" {% endif %}>
|
||||
|
||||
@@ -47,6 +47,8 @@
|
||||
{{ macros.domainWithSan(td.data.data) }}
|
||||
{% elseif td.data.macro == 'actions' %}
|
||||
{{ macros.actions(td.data.data) }}
|
||||
{% elseif td.data.macro == 'type2fa' %}
|
||||
{{ macros.type2fa(td.data.data) }}
|
||||
{% else %}
|
||||
Table macro '{{ td.data.macro|json_encode }}' is not implemented!
|
||||
Unable to handle this data: {{ td.data|json_encode }}
|
||||
|
||||
Reference in New Issue
Block a user