Files
komp_ac/web/templates/pages/analytics/profile_options.html
2026-08-03 13:32:25 +02:00

13 lines
533 B
HTML

{#
GET /api/profiles — crate::pages::analytics::ui::ProfileOptions
The swap target is a <select>, so even the failure case is an <option>.
#}
{%- if let Some(message) = error %}
<option value="">Could not load profiles: {{ message }}</option>
{%- else %}
<option value="">{% if profiles.is_empty() %}No profiles available{% else %}Choose a profile…{% endif %}</option>
{%- for profile in profiles %}
<option value="{{ profile.name }}">{{ profile.name }} ({{ profile.table_count }} tables)</option>
{%- endfor %}
{%- endif %}