package templates
import "git.jmbit.de/jmb/goipam/utils"
templ head(title string) {
{ title }
}
templ footer(timestamp string) {
}
templ navbar(loggedIn bool) {
}
templ loginButton(loggedIn bool) {
if loggedIn {
Profile
} else {
}
}
templ ErrorMessage(title string, content string) {
{ content }
}
// wrapBase handles the basics of HTML
templ wrapBase(metaContent utils.MetaContent, title string, err error) {
@head(title)
@navbar(metaContent.IsLoggedIn)
if err != nil {
@ErrorMessage("Error", err.Error())
}
{ children... }
@footer(metaContent.Timestamp)
}
templ Empty() {
}