diff --git a/templates/base.gohtml b/templates/base.gohtml index 2a60db9..d64a3a8 100644 --- a/templates/base.gohtml +++ b/templates/base.gohtml @@ -104,26 +104,32 @@
-
- {{block "header" .}} - {{template "header" .}} - {{end}} -
- -
- - - -
- {{block "sidebar" .}} - {{template "navigation" dict "CurrentPath" .CurrentPath "IsCollapsed" false}} + {{if .User}} +
+ {{block "header" .}} + {{template "header" .}} {{end}}
- -
+ +
+ + + +
+ {{block "sidebar" .}} + {{template "navigation" dict "CurrentPath" .CurrentPath "IsCollapsed" false}} + {{end}} +
+ +
+ {{template "content" .}} +
+
+ {{else}} +
{{template "content" .}}
-
+ {{end}}
diff --git a/templates/login.gohtml b/templates/login.gohtml index a54e773..f0da7a7 100644 --- a/templates/login.gohtml +++ b/templates/login.gohtml @@ -1,6 +1,4 @@ {{define "title"}}Login{{end}} -{{define "header"}}{{end}} -{{define "sidebar"}}{{end}} {{define "content"}}