diff options
author | Raphael <mail@raphaelkabo.com> | 2023-10-09 11:10:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 11:10:51 +0100 |
commit | cc6fcb4c405d8cffacbf9b1082abf61e918482fa (patch) | |
tree | 693f324550dccedd50b6313165b88281a8ebcac8 /views | |
parent | 25fcdd1023550631f5fec6f750829fe09a311d66 (diff) | |
parent | 31022a7d323a351041b7b8508fb56c14fd699580 (diff) |
Merge pull request #114 from lowercasename/rk/static-pages
Static pages
Diffstat (limited to 'views')
-rwxr-xr-x | views/layouts/main.handlebars | 23 | ||||
-rwxr-xr-x | views/newevent.handlebars | 3 | ||||
-rw-r--r-- | views/static.handlebars | 10 |
3 files changed, 32 insertions, 4 deletions
diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars index daa5a37..fb493a4 100755 --- a/views/layouts/main.handlebars +++ b/views/layouts/main.handlebars @@ -68,12 +68,27 @@ {{{body}}} </div> <div id="footerContainer"> - <small class="text-muted"> - Version 1.3.0 · <a href="https://github.com/lowercasename/gathio">GitHub</a> · Made with <i class="far fa-heart"></i> by <a href="https://raphaelkabo.com">Raphael</a><br /> - </small> + {{#if showInstanceInformation}} + <p class="small text-muted"> + <strong>{{domain}}</strong> + {{#each staticPages}} + {{#if @first}} + · + {{/if}} + + <a href="{{this.path}}">{{this.title}}</a> + + {{#unless @last}} + · + {{/unless}} + {{/each}} + </p> + {{/if}} + <p class="small text-muted"> + <strong>Gathio</strong> version {{version}} · <a href="https://github.com/lowercasename/gathio">GitHub</a> · Made with <i class="far fa-heart"></i> by <a href="https://raphaelkabo.com">Raphael</a> and <a href="https://github.com/lowercasename/gathio/graphs/contributors">contributors</a> + </p> </div> </div> </div> </div> - </body> </html> diff --git a/views/newevent.handlebars b/views/newevent.handlebars index 349c355..a3b35b3 100755 --- a/views/newevent.handlebars +++ b/views/newevent.handlebars @@ -1,3 +1,4 @@ +<article> <div class="container mb-4"> <div class="row"> <div class="col-sm-4 p-2"> @@ -51,5 +52,7 @@ </form> </div> +</article> + <script src="/js/generate-timezones.js"></script> <script src="/js/modules/new.js"></script>
\ No newline at end of file diff --git a/views/static.handlebars b/views/static.handlebars new file mode 100644 index 0000000..d28d8f2 --- /dev/null +++ b/views/static.handlebars @@ -0,0 +1,10 @@ + +<article class="static-page"> + <header> + <h1>{{title}}</h1> + </header> + <main> + {{{content}}} + </main> +</article> + |