0
0
mirror of https://github.com/kevinpapst/kimai2.git synced 2024-12-22 12:18:29 +00:00
kevinpapst_kimai2/templates/macros/status.html.twig

19 lines
527 B
Twig

{% macro status(title, color) %}
{% from '@theme/components/status.html.twig' import status %}
{% set options = {} %}
{% if color %}{% set options = options|merge({'color': color}) %}{% endif %}
{{ status(title, options) }}
{% endmacro %}
{% macro status_duration(duration) %}
{{ _self.status(duration, 'azure') }}
{% endmacro %}
{% macro status_money(money) %}
{{ _self.status(money, 'blue') }}
{% endmacro %}
{% macro status_count(counter) %}
{{ _self.status(counter, 'teal') }}
{% endmacro %}