|
|
@ -1,6 +1,6 @@ |
|
|
|
// Code generated by templ - DO NOT EDIT.
|
|
|
|
|
|
|
|
// templ: version: v0.3.906
|
|
|
|
// templ: version: v0.3.960
|
|
|
|
package layout |
|
|
|
|
|
|
|
//lint:file-ignore SA4006 This context is only used if a nested component is present.
|
|
|
@ -37,7 +37,6 @@ func Layout(c *gin.Context, content templ.Component) templ.Component { |
|
|
|
templ_7745c5c3_Var1 = templ.NopComponent |
|
|
|
} |
|
|
|
ctx = templ.ClearChildren(ctx) |
|
|
|
|
|
|
|
username := c.GetString("username") |
|
|
|
if username == "" { |
|
|
|
username = "admin" |
|
|
@ -139,7 +138,6 @@ func Layout(c *gin.Context, content templ.Component) templ.Component { |
|
|
|
return templ_7745c5c3_Err |
|
|
|
} |
|
|
|
for _, menuItem := range GetConfigurationMenuItems() { |
|
|
|
|
|
|
|
isActiveItem := currentPath == menuItem.URL |
|
|
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "<li class=\"nav-item\">") |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|