Skip to content

Commit b236a87

Browse files
committed
fix #830
1 parent ea1af2c commit b236a87

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG.md
22

3+
## unreleased
4+
- `delete_link` in the list component now submits a POST request, instead of being a simple link.
5+
- This avoids accidental deletion by bots following links, and is more in line with HTTP semantics.
6+
- In the table component, the `_col_` prefix is now added to column names in CSS classes. This avoids conflicts with other CSS classes that might be used in the page.
7+
- fixes https://github.com/sqlpage/SQLPage/issues/830
8+
39
## 0.33.1 (2025-02-25)
410

511
- Fix a bug where the table component would not format numbers if sorting was not enabled.

sqlpage/templates/table.handlebars

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{{#each this}}
3535
{{#if (not (starts_with @key '_sqlpage_'))}}
3636
<th class="
37-
{{~@key~}}
37+
_col_{{~@key~}}
3838
{{~#if (array_contains_case_insensitive ../../align_right @key)}} text-end {{/if~}}
3939
{{~#if (array_contains_case_insensitive ../../align_center @key)}} text-center {{/if~}}
4040
"

0 commit comments

Comments
 (0)