diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-22 18:45:59 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-22 19:35:33 +0200 |
commit | 3b9d27649a31e5af3fb137ff5b3378e7b8f7b9ae (patch) | |
tree | 0f43f30d824b8b805e4a72b66a0ee1bee7397803 /templates/base.qtpl | |
parent | 1e4613aa1113b373a8d841c28e222599237a33c5 (diff) | |
download | lens-3b9d27649a31e5af3fb137ff5b3378e7b8f7b9ae.tar.gz lens-3b9d27649a31e5af3fb137ff5b3378e7b8f7b9ae.tar.bz2 lens-3b9d27649a31e5af3fb137ff5b3378e7b8f7b9ae.zip |
feat: Add user management
As many things it is on crude state. The settings.go has become a big
mess, but I have achieve MVP, so from now one things shall improve as
I'll spent more time on refactoring.
Diffstat (limited to 'templates/base.qtpl')
-rw-r--r-- | templates/base.qtpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/base.qtpl b/templates/base.qtpl index 0c05782..5a7c3b7 100644 --- a/templates/base.qtpl +++ b/templates/base.qtpl @@ -1,11 +1,23 @@ This is a base page template. All the other template pages implement this interface. +{% import "strconv" %} + {% interface Page { Title() Content() Script() } + +%} + +{% code + func FromUInttoString(u *uint) string { + if u != nil { + return strconv.FormatUint(uint64(*u), 10) + } + return "" + } %} |