|  |  |  | @ -65,7 +65,7 @@ func wSidebar(website models.Website) templ.Component { | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var4 templ.SafeURL = templ.URL(externalUrl(website.SiteUrl)) | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var4 templ.SafeURL = templ.URL(externalUrl(website.Url.String())) | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var4))) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
	
		
			
				
					
					|  |  |  | @ -271,92 +271,102 @@ func websiteCreateForm(csrfToken string, form forms.WebsiteCreateForm) templ.Com | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 23, "<input type=\"text\" name=\"sitename\" id=\"sitename\" required></div><div>") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		err, exists = form.FieldErrors["siteurl"] | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "<label for=\"siteurl\">Site URL: </label> ") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		if exists { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 25, "<label class=\"error\">") | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 23, "<input type=\"text\" name=\"sitename\" id=\"sitename\" value=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var18 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(err) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(form.Name) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 79, Col: 29} | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 73, Col: 68} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "</label> ") | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "\" required></div><div>") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "<input type=\"text\" name=\"siteurl\" id=\"siteurl\" required></div><div>") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		err, exists = form.FieldErrors["authorname"] | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 28, "<label for=\"authorname\">Site Author: </label> ") | 
		
	
		
			
				|  |  |  |  | 		err, exists = form.FieldErrors["siteurl"] | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 25, "<label for=\"siteurl\">Site URL: </label> ") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		if exists { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "<label class=\"error\">") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "<label class=\"error\">") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var19 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(err) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 87, Col: 29} | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 79, Col: 29} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "</label> ") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "</label> ") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "<input type=\"text\" name=\"authorname\" id=\"authorname\" required></div><div><button type=\"submit\">Submit</button></div>") | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 28, "<input type=\"text\" name=\"siteurl\" id=\"siteurl\" value=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		return nil | 
		
	
		
			
				|  |  |  |  | 	}) | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | func WebsiteCreateButton() templ.Component { | 
		
	
		
			
				|  |  |  |  | 	return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_CtxErr | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var20 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(form.SiteUrl) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 81, Col: 69} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | 
		
	
		
			
				|  |  |  |  | 		if !templ_7745c5c3_IsBuffer { | 
		
	
		
			
				|  |  |  |  | 			defer func() { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err == nil { | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_Err = templ_7745c5c3_BufErr | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 			}() | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "\" required></div><div>") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var20 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var20 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var20 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		err, exists = form.FieldErrors["authorname"] | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "<label for=\"authorname\">Site Author: </label> ") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 32, "<button hx-get=\"/websites/create\" hx-target=\"closest div\">Add Website</button>") | 
		
	
		
			
				|  |  |  |  | 		if exists { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "<label class=\"error\">") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var21 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinStringErrs(err) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 87, Col: 29} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 32, "</label> ") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 33, "<input type=\"text\" name=\"authorname\" id=\"authorname\" value=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var22 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(form.AuthorName) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 89, Col: 78} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 34, "\" required></div><div><button type=\"submit\">Submit</button></div>") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
	
		
			
				
					
					|  |  |  | @ -365,69 +375,6 @@ func WebsiteCreateButton() templ.Component { | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | func WebsiteList(title string, data CommonData, websites []models.Website) templ.Component { | 
		
	
		
			
				|  |  |  |  | 	return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_CtxErr | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | 
		
	
		
			
				|  |  |  |  | 		if !templ_7745c5c3_IsBuffer { | 
		
	
		
			
				|  |  |  |  | 			defer func() { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err == nil { | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_Err = templ_7745c5c3_BufErr | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			}() | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var21 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var21 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var21 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var22 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | 
		
	
		
			
				|  |  |  |  | 			if !templ_7745c5c3_IsBuffer { | 
		
	
		
			
				|  |  |  |  | 				defer func() { | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 					if templ_7745c5c3_Err == nil { | 
		
	
		
			
				|  |  |  |  | 						templ_7745c5c3_Err = templ_7745c5c3_BufErr | 
		
	
		
			
				|  |  |  |  | 					} | 
		
	
		
			
				|  |  |  |  | 				}() | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 33, "<h1>My Websites</h1><div>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = WebsiteCreateButton().Render(ctx, templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 34, "</div><div>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = displayWebsites(websites).Render(ctx, templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 35, "</div>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			return nil | 
		
	
		
			
				|  |  |  |  | 		}) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = base(title, data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var22), templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		return nil | 
		
	
		
			
				|  |  |  |  | 	}) | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | func WebsiteDashboard(title string, data CommonData, website models.Website) templ.Component { | 
		
	
		
			
				|  |  |  |  | 	return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { | 
		
	
	
		
			
				
					
					|  |  |  | @ -460,7 +407,62 @@ func WebsiteDashboard(title string, data CommonData, website models.Website) tem | 
		
	
		
			
				|  |  |  |  | 				}() | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 36, "<div id=\"dashboard\">") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 35, "<h1>My Websites</h1><div><a href=\"/websites/create\">Add Website</a></div><div>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = displayWebsites(websites).Render(ctx, templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 36, "</div>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			return nil | 
		
	
		
			
				|  |  |  |  | 		}) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = base(title, data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var24), templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		return nil | 
		
	
		
			
				|  |  |  |  | 	}) | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | func WebsiteDashboard(title string, data CommonData, website models.Website) templ.Component { | 
		
	
		
			
				|  |  |  |  | 	return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_CtxErr | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | 
		
	
		
			
				|  |  |  |  | 		if !templ_7745c5c3_IsBuffer { | 
		
	
		
			
				|  |  |  |  | 			defer func() { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err == nil { | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_Err = templ_7745c5c3_BufErr | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			}() | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var25 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var25 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var25 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var26 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | 
		
	
		
			
				|  |  |  |  | 			if !templ_7745c5c3_IsBuffer { | 
		
	
		
			
				|  |  |  |  | 				defer func() { | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 					if templ_7745c5c3_Err == nil { | 
		
	
		
			
				|  |  |  |  | 						templ_7745c5c3_Err = templ_7745c5c3_BufErr | 
		
	
		
			
				|  |  |  |  | 					} | 
		
	
		
			
				|  |  |  |  | 				}() | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 37, "<div id=\"dashboard\">") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
	
		
			
				
					
					|  |  |  | @ -468,87 +470,87 @@ func WebsiteDashboard(title string, data CommonData, website models.Website) tem | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 37, "<div><h1>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var25 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var25, templ_7745c5c3_Err = templ.JoinStringErrs(website.Name) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 117, Col: 22} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var25)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 38, "</h1><h2>Embed your Guestbook</h2><p>Upload <a href=\"/static/js/guestbook.js\" download>this JavaScript WebComponent</a> to your site and include it in your <code>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var26 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var26, templ_7745c5c3_Err = templ.JoinStringErrs(`<head>`) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 120, Col: 140} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var26)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 39, "</code> tag.</p><div><pre><code id=\"guestbookSnippet\">") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 38, "<div><h1>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var27 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.JoinStringErrs( | 
		
	
		
			
				|  |  |  |  | 				`<head> | 
		
	
		
			
				|  |  |  |  |     <script type="module" src="js/guestbook.js"></script> | 
		
	
		
			
				|  |  |  |  | </head>`) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.JoinStringErrs(website.Name) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 129, Col: 8} | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 113, Col: 22} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var27)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 40, "</code></pre><p>Then add the custom elements where you want your form and comments to show up</p>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			gbUrl := fmt.Sprintf("https://%s/websites/%s/guestbook", data.RootUrl, shortIdToSlug(website.ShortId)) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 41, "<pre><code>") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 39, "</h1><h2>Embed your Guestbook</h2><p>Upload <a href=\"/static/js/guestbook.js\" download>this JavaScript WebComponent</a> to your site and include it in your <code>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var28 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var28, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf(`<guestbook-form guestbook="%s"></guestbook-form> | 
		
	
		
			
				|  |  |  |  | <guestbook-comments guestbook="%s"></guestbook-comments>`, gbUrl, gbUrl)) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var28, templ_7745c5c3_Err = templ.JoinStringErrs(`<head>`) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 140, Col: 72} | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 116, Col: 140} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var28)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 42, "</code></pre></div><p>If your web host does not allow CORS requests, use an iframe instead</p><div><pre><code>") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 40, "</code> tag.</p><div><pre><code id=\"guestbookSnippet\">") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var29 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf(`<iframe src="%s" title="Guestbook"></iframe>`, gbUrl)) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.JoinStringErrs( | 
		
	
		
			
				|  |  |  |  | 				`<head> | 
		
	
		
			
				|  |  |  |  |     <script type="module" src="js/guestbook.js"></script> | 
		
	
		
			
				|  |  |  |  | </head>`) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 150, Col: 75} | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 125, Col: 8} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var29)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 43, "</code></pre></div></div></div>") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 41, "</code></pre><p>Then add the custom elements where you want your form and comments to show up</p>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			gbUrl := fmt.Sprintf("https://%s/websites/%s/guestbook", data.RootUrl, shortIdToSlug(website.ShortId)) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 42, "<pre><code>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var30 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf(`<guestbook-form guestbook="%s"></guestbook-form> | 
		
	
		
			
				|  |  |  |  | <guestbook-comments guestbook="%s"></guestbook-comments>`, gbUrl, gbUrl)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 136, Col: 72} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var30)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 43, "</code></pre></div><p>If your web host does not allow CORS requests, use an iframe instead</p><div><pre><code>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var31 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var31, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf(`<iframe src="%s" title="Guestbook"></iframe>`, gbUrl)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 146, Col: 75} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var31)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 44, "</code></pre></div></div></div>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			return nil | 
		
	
		
			
				|  |  |  |  | 		}) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = base(title, data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var24), templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = base(title, data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var26), templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
	
		
			
				
					
					|  |  |  | @ -572,12 +574,12 @@ func WebsiteDashboardComingSoon(title string, data CommonData, website models.We | 
		
	
		
			
				|  |  |  |  | 			}() | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var30 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var30 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var30 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var32 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var32 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var32 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var31 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var33 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | 
		
	
		
			
				|  |  |  |  | 			if !templ_7745c5c3_IsBuffer { | 
		
	
	
		
			
				
					
					|  |  |  | @ -589,7 +591,7 @@ func WebsiteDashboardComingSoon(title string, data CommonData, website models.We | 
		
	
		
			
				|  |  |  |  | 				}() | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 44, "<div id=\"dashboard\">") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 45, "<div id=\"dashboard\">") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
	
		
			
				
					
					|  |  |  | @ -597,26 +599,26 @@ func WebsiteDashboardComingSoon(title string, data CommonData, website models.We | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 45, "<div><h1>") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 46, "<div><h1>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var32 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var32, templ_7745c5c3_Err = templ.JoinStringErrs(website.Name) | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var34 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.JoinStringErrs(website.Name) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 164, Col: 22} | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 160, Col: 22} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var32)) | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var34)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 46, "</h1><p>Coming Soon</p></div></div>") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 47, "</h1><p>Coming Soon</p></div></div>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			return nil | 
		
	
		
			
				|  |  |  |  | 		}) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = base(title, data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var31), templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = base(title, data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var33), templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
	
		
			
				
					
					|  |  |  | @ -640,12 +642,24 @@ func WebsiteCreate(title string, data CommonData, form forms.WebsiteCreateForm) | 
		
	
		
			
				|  |  |  |  | 			}() | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var33 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var33 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var33 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var35 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var35 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var35 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 47, "<form hx-post=\"/websites/create\" hx-target=\"closest div\">") | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var36 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | 
		
	
		
			
				|  |  |  |  | 			if !templ_7745c5c3_IsBuffer { | 
		
	
		
			
				|  |  |  |  | 				defer func() { | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 					if templ_7745c5c3_Err == nil { | 
		
	
		
			
				|  |  |  |  | 						templ_7745c5c3_Err = templ_7745c5c3_BufErr | 
		
	
		
			
				|  |  |  |  | 					} | 
		
	
		
			
				|  |  |  |  | 				}() | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 48, "<form action=\"/websites/create\" method=\"post\">") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
	
		
			
				
					
					|  |  |  | @ -653,100 +667,16 @@ func WebsiteCreate(title string, data CommonData, form forms.WebsiteCreateForm) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 48, "</form>") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 49, "</form>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			return nil | 
		
	
		
			
				|  |  |  |  | 		}) | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | func embeddableForm(root string, website models.Website) templ.Component { | 
		
	
		
			
				|  |  |  |  | 	return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_CtxErr | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | 
		
	
		
			
				|  |  |  |  | 		if !templ_7745c5c3_IsBuffer { | 
		
	
		
			
				|  |  |  |  | 			defer func() { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err == nil { | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_Err = templ_7745c5c3_BufErr | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			}() | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var34 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var34 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var34 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		postUrl := fmt.Sprintf("https://%s/websites/%s/guestbook/comments/create/remote", root, shortIdToSlug(website.ShortId)) | 
		
	
		
			
				|  |  |  |  | 		formStr := | 
		
	
		
			
				|  |  |  |  | 			`<form action="%s" method="post"> | 
		
	
		
			
				|  |  |  |  |         <div> | 
		
	
		
			
				|  |  |  |  |             <label for="authorname">Name</label> | 
		
	
		
			
				|  |  |  |  |             <input type="text" name="authorname" id="authorname"/> | 
		
	
		
			
				|  |  |  |  |         </div> | 
		
	
		
			
				|  |  |  |  |         <div> | 
		
	
		
			
				|  |  |  |  |             <label for="authoremail">Email (Optional) </label> | 
		
	
		
			
				|  |  |  |  |             <input type="text" name="authoremail" id="authoremail"/> | 
		
	
		
			
				|  |  |  |  |         </div> | 
		
	
		
			
				|  |  |  |  |         <div> | 
		
	
		
			
				|  |  |  |  |             <label for="authorsite">Site Url (Optional) </label> | 
		
	
		
			
				|  |  |  |  |             <input type="text" name="authorsite" id="authorsite"/> | 
		
	
		
			
				|  |  |  |  |         </div> | 
		
	
		
			
				|  |  |  |  |         <div> | 
		
	
		
			
				|  |  |  |  |             <label for="content">Comment</label> | 
		
	
		
			
				|  |  |  |  |             <textarea name="content" id="content"></textarea> | 
		
	
		
			
				|  |  |  |  |         </div> | 
		
	
		
			
				|  |  |  |  |         <div> | 
		
	
		
			
				|  |  |  |  |             <input type="submit" value="Submit"/> | 
		
	
		
			
				|  |  |  |  |         </div> | 
		
	
		
			
				|  |  |  |  | </form>` | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 49, "<pre><code>") | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = base(title, data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var36), templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var35 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf(formStr, postUrl)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/websites.templ`, Line: 206, Col: 34} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var35)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 50, "</code></pre>") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		return nil | 
		
	
		
			
				|  |  |  |  | 	}) | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | func embedJavaScriptSnippet(root string, website models.Website) templ.Component { | 
		
	
		
			
				|  |  |  |  | 	return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_CtxErr | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | 
		
	
		
			
				|  |  |  |  | 		if !templ_7745c5c3_IsBuffer { | 
		
	
		
			
				|  |  |  |  | 			defer func() { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err == nil { | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_Err = templ_7745c5c3_BufErr | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			}() | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var36 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var36 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var36 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		return nil | 
		
	
		
			
				|  |  |  |  | 	}) | 
		
	
		
			
				|  |  |  |  | } | 
		
	
	
		
			
				
					
					|  |  |  | 
 |