0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-05-13 05:01:53 +00:00

removed unused widget templates

This commit is contained in:
Kevin Papst 2025-03-03 16:42:37 +01:00
parent 50a3cbbbea
commit a836051dff
2 changed files with 0 additions and 45 deletions

View file

@ -1,16 +0,0 @@
{% extends 'widget/widget-counter.html.twig' %}
{% from 'macros/widgets.html.twig' import label %}
{% block widget_data %}
{% if data is empty %}
{% set data = {(null): 0.00} %}
{% endif %}
{% if data|length > 1 %}
{% for currency, revenue in data %}
{{ label(revenue|money(currency|default(options.currency|default(null))), options.color) }}
{% endfor %}
{% else %}
{% for currency, revenue in data %}
{{ revenue|money(currency|default(options.currency|default(null))) }}
{% endfor %}
{% endif %}
{% endblock %}

View file

@ -1,29 +0,0 @@
{% set url = null %}
{% if options.route is defined %}
{% set url = path(options.route, options.routeOptions|default([])) %}
{% endif %}
<div class="card card-sm">
<div class="card-body">
<div class="row align-items-center">
<div class="col-auto">
{% if not url is empty %}<a href="{{ url }}">{% endif %}
<span class="bg-{{ options.color|default('green') }} text-white avatar">
{{ icon(options.icon, true) }}
</span>
{% if not url is empty %}</a>{% endif %}
</div>
<div class="col">
<div class="font-weight-medium">
{{ title|trans }}
</div>
<div class="text-body-secondary">
{% block widget_data %}
{{ data }}
{% endblock %}
</div>
</div>
</div>
</div>
</div>