From da757197e6adf694bb8a0e012ae19a39bec4458b Mon Sep 17 00:00:00 2001 From: srcavalho12 Date: Wed, 13 Mar 2024 20:42:56 -0400 Subject: [PATCH] Template Sidebar --- sqlpage/templates/shell.handlebars | 242 +++++++++++++++++++++-------- 1 file changed, 175 insertions(+), 67 deletions(-) diff --git a/sqlpage/templates/shell.handlebars b/sqlpage/templates/shell.handlebars index 788cc12f..c60f7785 100644 --- a/sqlpage/templates/shell.handlebars +++ b/sqlpage/templates/shell.handlebars @@ -5,13 +5,13 @@ {{default title "SQLPage"}} - {{#each (to_array css)}} + {{#each (to_array css)}} {{#if this}} {{/if}} - {{/each}} + {{/each}} - {{#if font}} + {{#if font}} @@ -38,78 +38,186 @@ {{/if}} + + + - +
{{#if title}} -
- + + {{else}} + + {{/if}} {{/if}} -
- {{~#each_row~}}{{~/each_row~}} +
+
+ {{#if sidebar}}
{{/if}} + {{~#each_row~}}{{~/each_row~}} + {{#if sidebar}}
{{/if}} +
+ {{#if sidebar}} + + {{/if}}
-
- {{#if footer}} - {{{markdown footer}}} - {{else}} - - Built with SQLPage - {{/if}} -
+{{#unless sidebar}} +
+ {{#if footer}} + {{{markdown footer}}} + {{else}} + + Built with SQLPage + {{/if}} +
+{{/unless}} - + \ No newline at end of file