package web import "net/http" import "git.arav.su/Arav/dwelling-home/pkg/mindflow" import "git.arav.su/Arav/dwelling-home/pkg/util" import "strconv" import "time" templ MindflowAdmin(posts []mindflow.Post, categories []mindflow.Category, r *http.Request) { @base("Mindflow Administration", "", "", "/mindflow/admin", r, mindflowAdminHead()) {

Manage categories

Create a new post

for _, post := range posts {

{ post.Category.Name }: { post.Title }

} if len(posts) == 0 {

Nothing? There must be some... Looks like database went down.

}
} } templ mindflowAdminHead() { }