Show the expensive tag in info providers list

This commit is contained in:
Jan Böhmer 2026-07-26 14:12:49 +02:00
parent 73941707b5
commit 6a4d816545
2 changed files with 27 additions and 3 deletions

View file

@ -11,12 +11,12 @@
{% if provider.providerInfo.url is not empty %}
<a href="{{ provider.providerInfo.url }}" target="_blank">{{ provider.providerInfo.name }}</a>
{% else %}
{{ provider.providerInfo.name | trans }}
{{ provider.providerInfo.name }}
{% endif %}
</h5>
<div>
{% if provider.providerInfo.description is not null %}
{{ provider.providerInfo.description | trans }}
{{ provider.providerInfo.description }}
{% endif %}
</div>
@ -27,6 +27,12 @@
title="{% trans %}info_providers.settings.title{% endtrans %}"
><i class="fa-solid fa-cog"></i></a>
{% endif %}
{% if provider.providerInfo.expensive %}
<span class="badge bg-warning" title="{% trans %}info_providers.expensive.tooltip{% endtrans %}">
<i class="fa-fw fa-solid fa-euro-sign"></i>
{% trans %}info_providers.expensive{% endtrans %}
</span>
{% endif %}
{% for capability in provider.providerInfo.capabilities|sort((a, b) => a.orderIndex <=> b.orderIndex) %}
{# @var capability \App\Services\InfoProviderSystem\Providers\ProviderCapabilities #}
<span class="badge text-bg-secondary">
@ -46,7 +52,7 @@
<i class="fa-solid fa-circle-exclamation"></i> <b>{% trans %}info_providers.providers_list.disabled{% endtrans %}</b>
{% if provider.providerInfo.disabledHelp is not empty %}
<br>
<span class="text-muted">{{ provider.providerInfo.disabledHelp|trans }}</span>
<span class="text-muted">{{ provider.providerInfo.disabledHelp }}</span>
{% endif %}
</div>
</div>