{# The plugin's own widgets: record counts (body), quick links (links) and notes (text). #} {% import "tungsten/components/ui.html" as ui %} {% if body is defined %}
{% if item.title %}

{{ item.title }}

{% endif %} {{ body }}
{% elif links is defined %} {% call ui.card(item.title or __('Quick links'), icon_name='link', classes='h-full', padding='px-6 pb-6 pt-4') %} {% if links %}
{% for l in links %}{{ ui.button(l.label, 'gray', l.icon, href=l.url, outlined=true, size='sm') }}{% endfor %}
{% else %}

{{ __('None of the picked links can be shown.') }}

{% endif %} {% endcall %} {% else %} {% call ui.card(item.title or __('Note'), icon_name='sticky-note', icon_color='warning', classes='h-full', padding='px-6 pb-6 pt-4') %}
{{ text }}
{% endcall %} {% endif %}