Rename _rows_and_columns.html to _table.html, refs #521

This commit is contained in:
Simon Willison 2019-07-02 17:50:45 -07:00
commit e7120d91f6
6 changed files with 48 additions and 48 deletions

View file

@ -24,7 +24,7 @@
<p>This data as {% for name, url in renderers.items() %}<a href="{{ url }}">{{ name }}</a>{{ ", " if not loop.last }}{% endfor %}</p>
{% include custom_rows_and_columns_templates %}
{% include custom_table_templates %}
{% if foreign_key_tables %}
<h2>Links from other tables</h2>

View file

@ -145,7 +145,7 @@
</div>
{% endif %}
{% include custom_rows_and_columns_templates %}
{% include custom_table_templates %}
{% if next_url %}
<p><a href="{{ next_url }}">Next page</a></p>

View file

@ -744,14 +744,14 @@ class TableView(RowTableShared):
"sort": sort,
"sort_desc": sort_desc,
"disable_sort": is_view,
"custom_rows_and_columns_templates": [
"_rows_and_columns-{}-{}.html".format(
"custom_table_templates": [
"_table-{}-{}.html".format(
to_css_class(database), to_css_class(table)
),
"_rows_and_columns-table-{}-{}.html".format(
"_table-table-{}-{}.html".format(
to_css_class(database), to_css_class(table)
),
"_rows_and_columns.html",
"_table.html",
],
"metadata": metadata,
"view_definition": await db.get_view_definition(table),
@ -828,14 +828,14 @@ class RowView(RowTableShared):
),
"display_columns": display_columns,
"display_rows": display_rows,
"custom_rows_and_columns_templates": [
"_rows_and_columns-{}-{}.html".format(
"custom_table_templates": [
"_table-{}-{}.html".format(
to_css_class(database), to_css_class(table)
),
"_rows_and_columns-row-{}-{}.html".format(
"_table-row-{}-{}.html".format(
to_css_class(database), to_css_class(table)
),
"_rows_and_columns.html",
"_table.html",
],
"metadata": (self.ds.metadata("databases") or {})
.get(database, {})