13 lines
533 B
HTML
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 %}
|