1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: display database type

This commit is contained in:
Ferdinand Mütsch 2020-10-16 16:58:16 +02:00
parent 4336d732c9
commit c78ee5465c
2 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,9 @@ func loadTemplates() {
"getVersion": func() string { "getVersion": func() string {
return config.Get().Version return config.Get().Version
}, },
"getDbType": func() string {
return strings.ToLower(config.Get().Db.Dialect)
},
"htmlSafe": func(html string) template.HTML { "htmlSafe": func(html string) template.HTML {
return template.HTML(html) return template.HTML(html)
}, },

View File

@ -1,6 +1,6 @@
<footer class="flex justify-between w-full text-center text-gray-500 text-xs mt-12"> <footer class="flex justify-between w-full text-center text-gray-500 text-xs mt-12">
<div class="text-xs font-mono"> <div class="text-xs font-mono">
v{{ getVersion }} v{{ getVersion }} @ {{ getDbType }}
</div> </div>
<div> <div>
Made with &nbsp; 🤍 &nbsp; by <a href="https://muetsch.io" class="border-b border-green-700">Ferdinand Mütsch</a> as <a Made with &nbsp; 🤍 &nbsp; by <a href="https://muetsch.io" class="border-b border-green-700">Ferdinand Mütsch</a> as <a