From e35c49126d6dacbbf6954240afdc994b3c2c42e8 Mon Sep 17 00:00:00 2001 From: lovasoa Date: Tue, 11 Mar 2025 00:18:30 +0100 Subject: [PATCH] add support for columns without buttons closes https://github.com/sqlpage/SQLPage/issues/851 --- CHANGELOG.md | 2 ++ sqlpage/templates/columns.handlebars | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17a356ca..c7b9e29d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ - fix a crash when manipulating TINYINTs from microsoft sql server - update sqlparser to 0.55: https://github.com/apache/datafusion-sqlparser-rs/blob/main/changelog/0.55.0.md - fix a diplay issue when using intra-page anchor links inside tables with fixed headers +- Columns without buttons + - In the columns component, when no button text is specified, no button is displayed (instead of an empty button) ## 0.33.1 (2025-02-25) diff --git a/sqlpage/templates/columns.handlebars b/sqlpage/templates/columns.handlebars index bac082d5..2d02dc5d 100644 --- a/sqlpage/templates/columns.handlebars +++ b/sqlpage/templates/columns.handlebars @@ -31,9 +31,11 @@ {{/each}} + {{#if button_text}}
{{button_text}}
+ {{/if}}