webs unified
This commit is contained in:
12
web/templates/pages/analytics/profile_options.html
Normal file
12
web/templates/pages/analytics/profile_options.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{#
|
||||
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 %}
|
||||
Reference in New Issue
Block a user