You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@
35
35
- Better error messages. SQLPage displays a more precise and useful message when an error occurs, and displays the position in the SQL statement where the error occured. Incorrect error messages on invalid migrations are also fixed.
36
36
- We now distribute docker images from ARM too. Say hello to SQLPage on your Raspberry Pi and your Mac M1 !
37
37
- Create the default SQLite database file in the "sqlpage" config directory instead of at the root of the web server by default. This makes it inaccessible from the web, which is a more secure default. If you want to keep the old behavior, set the `database_url` configuration parameter to `sqlite://sqlpage.db` in your [configuration](./configuration.md).
38
+
- New `empty_title`, `empty_description`, and `empty_link` top-level attributes on the [`list`](https://sql.ophir.dev/documentation.sql?component=list#component) component to customize the text displayed when the list is empty.
38
39
39
40
## 0.11.0 (2023-09-17)
40
41
- Support for **environment variables** ! You can now read environment variables from sql code using `sqlpage.environment_variable('VAR_NAME')`.
('title', 'Text header at the top of the list.', 'TEXT', TRUE, TRUE),
30
+
('empty_title', 'Title text to display if the list is empty.', 'TEXT', TRUE, TRUE),
31
+
('empty_description', 'Description to display if the list is empty.', 'TEXT', TRUE, TRUE),
32
+
('empty_description_md', 'Description to display if the list is empty, in Markdown format.', 'TEXT', TRUE, TRUE),
33
+
('empty_link', 'URL to which the user should be taken if they click on the empty list.', 'URL', TRUE, TRUE),
30
34
-- item level
31
35
('title', 'Name of the list item, displayed prominently.', 'TEXT', FALSE, FALSE),
32
36
('description', 'A description of the list item, displayed as greyed-out text.', 'TEXT', FALSE, TRUE),
@@ -39,6 +43,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
39
43
40
44
INSERT INTO example(component, description, properties) VALUES
41
45
('list', 'The most basic list', json('[{"component":"list"},{"title":"A"},{"title":"B"},{"title":"C"}]')),
46
+
('list', 'An empty list with a link to add an item', json('[{"component":"list", "empty_title": "No items yet", "empty_description": "This list is empty. Click here to create a new item !", "empty_link": "documentation.sql"}]')),
42
47
('list', 'A list with rich text descriptions', json('[{"component":"list"},
43
48
{"title":"SQLPage", "description_md":"A **SQL**-based **page** generator for **PostgreSQL**, **MySQL**, and **SQLite**. [Free on Github](https://github.com/lovasoa/sqlpage)"},
44
49
{"title":"Tabler", "description_md":"A **free** and **open-source** **HTML** template pack based on **Bootstrap**."},
0 commit comments