13 lines
653 B
HTML
13 lines
653 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="">{{ nav.tr_args("analytics-load-error", [("message", message.to_string())]) }}</option>
|
|
{%- else %}
|
|
<option value="">{% if profiles.is_empty() %}{{ nav.tr("analytics-no-profiles") }}{% else %}{{ nav.tr("analytics-choose-profile") }}{% endif %}</option>
|
|
{%- for profile in profiles %}
|
|
<option value="{{ profile.name }}">{{ profile.name }} ({{ nav.tr_count("admin-table-count", "count", profile.table_count as i64) }})</option>
|
|
{%- endfor %}
|
|
{%- endif %}
|