{% extends "base.html" %} {% block title %}{{ database }}: {{ table }}{% endblock %} {% block extra_head %} {{- super() -}} {% if row_mutation_ui %} {#- The row edit dialog searches the other table to add many-to-many links #} {% if table_page_data.foreignKeys or (m2m_sections or [])|selectattr("can_add")|list %} {% endif %} {% include "_edit_tools_loader.html" %} {% endif %} {% endblock %} {% block body_class %}row db-{{ database|to_css_class }} table-{{ table|to_css_class }}{% endblock %} {% block crumbs %} {{ crumbs.nav(request=request, database=database, table=table) }} {% endblock %} {% block content %} {% set row_label = display_rows[0].row_label if display_rows else none %}

{{ table }}: {{ primary_key_values|map("key_value_display")|join(", ") }}{% if private %} 🔒{% endif %} {%- if row_label and row_label != primary_key_values|map("key_value_display")|join(", ") %}{{ row_label }}{% endif %}

{% set action_links, action_title = row_actions, "Row actions" %} {% include "_action_menu.html" %} {% include "_export_button.html" %}
{{ top_row() }} {% block description_source_license %}{% include "_description_source_license.html" %}{% endblock %} {% set export_meta, export_scope = table, "This row" %} {% set export_scope_description %}where {% for column, value in zip(primary_keys or ["rowid"], primary_key_values) %}{{ " and " if not loop.first }}{{ column }} = {% if value is string %}{{ value if value.isdigit() else '"' ~ value ~ '"' }}{% else %}{{ value|key_value_display }}{% endif %}{% endfor %}{% endset %} {#- Every format returns just this row, so there are no row counts to show -#} {% set export_single_row, export_rows = true, none %} {% include "_export_dialog.html" %} {% include custom_table_templates %} {% if m2m_sections or m2m_capped %}

Related rows

{% if m2m_capped %}{% include "_m2m_capped.html" %}{% endif %} {% for section in m2m_sections %}

{{ section.label }} {% if section.entry and section.entry.junction_rows_url %}via {{ section.junction }}{% else %}via {{ section.junction }}{% endif %}{% if section.entry and section.entry.total %} {{ section.total_text }}{% endif %}

{{ section.html }}
{% endfor %}
{% endif %} {% if foreign_key_tables %}

Referenced by

{% endif %} {% endblock %}