|  |  | @ -123,12 +123,89 @@ func GuestbookDashboardCommentsView(title string, data CommonData, website model | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			for _, c := range comments { |  |  |  | 			for _, c := range comments { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				templ_7745c5c3_Err = GuestbookDashboardCommentView(data, website, c).Render(ctx, templ_7745c5c3_Buffer) |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "<div><strong>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				var templ_7745c5c3_Var6 string | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(c.AuthorName) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 29, Col: 46} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "</strong> ") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				var templ_7745c5c3_Var7 string | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(c.Created.Format("01-02-2006 03:04PM")) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 30, Col: 64} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, " ") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if c.Deleted.IsZero() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					commentUrl := fmt.Sprintf("%s/dashboard/guestbook/comments/%s", wUrl(website), shortIdToSlug(c.ShortId)) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					hxHeaders := fmt.Sprintf("{\"X-CSRF-Token\": \"%s\"}", data.CSRFToken) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, "<a href=\"#\" hx-delete=\"") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 						return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					var templ_7745c5c3_Var8 string | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(commentUrl) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 						return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 34, Col: 62} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 						return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "\" hx-target=\"closest div\" hx-headers=\"") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 						return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					var templ_7745c5c3_Var9 string | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(hxHeaders) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 						return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 34, Col: 111} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 						return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, "\">Delete</a>") | 
			
		
	
		
		
			
				
					
					|  |  |  | 					if templ_7745c5c3_Err != nil { |  |  |  | 					if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 						return templ_7745c5c3_Err |  |  |  | 						return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 					} |  |  |  | 					} | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "</div></div>") |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "<p>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				var templ_7745c5c3_Var10 string | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(c.CommentText) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 38, Col: 43} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "</p></div>") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "</div></div>") | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
	
		
		
			
				
					
					|  |  | @ -158,108 +235,108 @@ func commentForm(form forms.CommentCreateForm) templ.Component { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			}() |  |  |  | 			}() | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		ctx = templ.InitializeContext(ctx) |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Var6 := templ.GetChildren(ctx) |  |  |  | 		templ_7745c5c3_Var11 := templ.GetChildren(ctx) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Var6 == nil { |  |  |  | 		if templ_7745c5c3_Var11 == nil { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var6 = templ.NopComponent |  |  |  | 			templ_7745c5c3_Var11 = templ.NopComponent | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		ctx = templ.ClearChildren(ctx) |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "<div><label for=\"authorname\">Name: </label>") |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "<div><label for=\"authorname\">Name: </label>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  | 		if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ_7745c5c3_Err |  |  |  | 			return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		error, exists := form.FieldErrors["authorName"] |  |  |  | 		error, exists := form.FieldErrors["authorName"] | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if exists { |  |  |  | 		if exists { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "<label class=\"error\">") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "<label class=\"error\">") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var7 string |  |  |  | 			var templ_7745c5c3_Var12 string | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(error) |  |  |  | 			templ_7745c5c3_Var12, templ_7745c5c3_Err = templ.JoinStringErrs(error) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 40, Col: 36} |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 52, Col: 36} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var12)) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, "</label> ") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 18, "</label> ") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "<input type=\"text\" name=\"authorname\" id=\"authorname\"></div><div><label for=\"authoremail\">Email: </label>") |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "<input type=\"text\" name=\"authorname\" id=\"authorname\"></div><div><label for=\"authoremail\">Email: </label>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  | 		if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ_7745c5c3_Err |  |  |  | 			return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		error, exists = form.FieldErrors["authorEmail"] |  |  |  | 		error, exists = form.FieldErrors["authorEmail"] | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if exists { |  |  |  | 		if exists { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, "<label class=\"error\">") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, "<label class=\"error\">") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var8 string |  |  |  | 			var templ_7745c5c3_Var13 string | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(error) |  |  |  | 			templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(error) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 48, Col: 36} |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 60, Col: 36} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13)) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "</label> ") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 21, "</label> ") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "<input type=\"text\" name=\"authoremail\" id=\"authoremail\"></div><div><label for=\"authorsite\">Site Url: </label>") |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "<input type=\"text\" name=\"authoremail\" id=\"authoremail\"></div><div><label for=\"authorsite\">Site Url: </label>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  | 		if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ_7745c5c3_Err |  |  |  | 			return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		error, exists = form.FieldErrors["authorSite"] |  |  |  | 		error, exists = form.FieldErrors["authorSite"] | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if exists { |  |  |  | 		if exists { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "<label class=\"error\">") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 23, "<label class=\"error\">") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var9 string |  |  |  | 			var templ_7745c5c3_Var14 string | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(error) |  |  |  | 			templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(error) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 56, Col: 36} |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 68, Col: 36} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "</label> ") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "</label> ") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "<input type=\"text\" name=\"authorsite\" id=\"authorsite\"></div><div><label for=\"content\">Comment: </label>") |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 25, "<input type=\"text\" name=\"authorsite\" id=\"authorsite\"></div><div><label for=\"content\">Comment: </label>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  | 		if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ_7745c5c3_Err |  |  |  | 			return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		error, exists = form.FieldErrors["content"] |  |  |  | 		error, exists = form.FieldErrors["content"] | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if exists { |  |  |  | 		if exists { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 18, "<label class=\"error\">") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "<label class=\"error\">") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var10 string |  |  |  | 			var templ_7745c5c3_Var15 string | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(error) |  |  |  | 			templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.JoinStringErrs(error) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 64, Col: 36} |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 76, Col: 36} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var15)) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "</label> ") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "</label> ") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, "<textarea name=\"content\" id=\"content\"></textarea></div><div><input type=\"submit\" value=\"Submit\"></div>") |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 28, "<textarea name=\"content\" id=\"content\"></textarea></div><div><input type=\"submit\" value=\"Submit\"></div>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  | 		if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ_7745c5c3_Err |  |  |  | 			return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
	
		
		
			
				
					
					|  |  | @ -283,58 +360,58 @@ func GuestbookCommentList(comments []models.GuestbookComment) templ.Component { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			}() |  |  |  | 			}() | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		ctx = templ.InitializeContext(ctx) |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Var11 := templ.GetChildren(ctx) |  |  |  | 		templ_7745c5c3_Var16 := templ.GetChildren(ctx) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Var11 == nil { |  |  |  | 		if templ_7745c5c3_Var16 == nil { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var11 = templ.NopComponent |  |  |  | 			templ_7745c5c3_Var16 = templ.NopComponent | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		ctx = templ.ClearChildren(ctx) |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if len(comments) == 0 { |  |  |  | 		if len(comments) == 0 { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 21, "<p>No comments yet!</p>") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "<p>No comments yet!</p>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		for _, c := range comments { |  |  |  | 		for _, c := range comments { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "<div><strong>") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "<div><strong>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var12 string |  |  |  | 			var templ_7745c5c3_Var17 string | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var12, templ_7745c5c3_Err = templ.JoinStringErrs(c.AuthorName) |  |  |  | 			templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(c.AuthorName) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 79, Col: 34} |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 91, Col: 34} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var12)) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 23, "</strong> ") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "</strong> ") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var13 string |  |  |  | 			var templ_7745c5c3_Var18 string | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(c.Created.Format("01-02-2006 03:04PM")) |  |  |  | 			templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(c.Created.Format("01-02-2006 03:04PM")) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 80, Col: 52} |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 92, Col: 52} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13)) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18)) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "<p>") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 32, "<p>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var14 string |  |  |  | 			var templ_7745c5c3_Var19 string | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(c.CommentText) |  |  |  | 			templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(c.CommentText) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 82, Col: 31} |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 94, Col: 31} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19)) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 25, "</p></div>") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 33, "</p></div>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
	
		
		
			
				
					
					|  |  | @ -359,9 +436,9 @@ func GuestbookView(title string, data CommonData, website models.Website, guestb | 
			
		
	
		
		
			
				
					
					|  |  |  | 			}() |  |  |  | 			}() | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		ctx = templ.InitializeContext(ctx) |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Var15 := templ.GetChildren(ctx) |  |  |  | 		templ_7745c5c3_Var20 := templ.GetChildren(ctx) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Var15 == nil { |  |  |  | 		if templ_7745c5c3_Var20 == nil { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var15 = templ.NopComponent |  |  |  | 			templ_7745c5c3_Var20 = templ.NopComponent | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		ctx = templ.ClearChildren(ctx) |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		postUrl := fmt.Sprintf("/websites/%s/guestbook/comments/create", shortIdToSlug(website.ShortId)) |  |  |  | 		postUrl := fmt.Sprintf("/websites/%s/guestbook/comments/create", shortIdToSlug(website.ShortId)) | 
			
		
	
	
		
		
			
				
					
					|  |  | @ -371,55 +448,55 @@ func GuestbookView(title string, data CommonData, website models.Website, guestb | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} else { |  |  |  | 		} else { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "<html><head><title>") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 34, "<html><head><title>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var16 string |  |  |  | 			var templ_7745c5c3_Var21 string | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var16, templ_7745c5c3_Err = templ.JoinStringErrs(title) |  |  |  | 			templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinStringErrs(title) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 95, Col: 26} |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 107, Col: 26} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var16)) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21)) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "</title></head><body><main><div><h1>Guestbook for ") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 35, "</title></head><body><main><div><h1>Guestbook for ") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var17 string |  |  |  | 			var templ_7745c5c3_Var22 string | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(website.SiteUrl) |  |  |  | 			templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(website.SiteUrl) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 100, Col: 59} |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 112, Col: 59} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22)) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 28, "</h1><form action=\"") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 36, "</h1><form action=\"") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var18 templ.SafeURL = templ.URL(postUrl) |  |  |  | 			var templ_7745c5c3_Var23 templ.SafeURL = templ.URL(postUrl) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var18))) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var23))) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "\" method=\"post\"><input type=\"hidden\" name=\"csrf_token\" value=\"") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 37, "\" method=\"post\"><input type=\"hidden\" name=\"csrf_token\" value=\"") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var19 string |  |  |  | 			var templ_7745c5c3_Var24 string | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(data.CSRFToken) |  |  |  | 			templ_7745c5c3_Var24, templ_7745c5c3_Err = templ.JoinStringErrs(data.CSRFToken) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 102, Col: 88} |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 114, Col: 88} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19)) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var24)) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "\">") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 38, "\">") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
	
		
		
			
				
					
					|  |  | @ -427,7 +504,7 @@ func GuestbookView(title string, data CommonData, website models.Website, guestb | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "</form></div><div id=\"comments\">") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 39, "</form></div><div id=\"comments\">") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
	
		
		
			
				
					
					|  |  | @ -435,7 +512,7 @@ func GuestbookView(title string, data CommonData, website models.Website, guestb | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 32, "</div></main></body></html>") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 40, "</div></main></body></html>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
	
		
		
			
				
					
					|  |  | @ -460,157 +537,41 @@ func CreateGuestbookComment(title string, data CommonData, website models.Websit | 
			
		
	
		
		
			
				
					
					|  |  |  | 			}() |  |  |  | 			}() | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		ctx = templ.InitializeContext(ctx) |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Var20 := templ.GetChildren(ctx) |  |  |  | 		templ_7745c5c3_Var25 := templ.GetChildren(ctx) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Var20 == nil { |  |  |  | 		if templ_7745c5c3_Var25 == nil { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var20 = templ.NopComponent |  |  |  | 			templ_7745c5c3_Var25 = templ.NopComponent | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		ctx = templ.ClearChildren(ctx) |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		postUrl := fmt.Sprintf("/websites/%s/guestbook/comments/create", shortIdToSlug(website.ShortId)) |  |  |  | 		postUrl := fmt.Sprintf("/websites/%s/guestbook/comments/create", shortIdToSlug(website.ShortId)) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if data.IsHtmx { |  |  |  | 		if data.IsHtmx { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 33, "<form hx-post=\"") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 41, "<form hx-post=\"") | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var21 string |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinStringErrs(postUrl) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 118, Col: 31} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, 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, 34, "\" hx-target=\"closest div\">") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = commentForm(form).Render(ctx, templ_7745c5c3_Buffer) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 35, "</form>") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} else { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			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, 36, "<form action=\"") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 					return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				var templ_7745c5c3_Var23 templ.SafeURL = templ.URL(postUrl) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var23))) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 					return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 37, "\" method=\"post\">") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 					return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				templ_7745c5c3_Err = commentForm(form).Render(ctx, templ_7745c5c3_Buffer) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 					return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 38, "</form>") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				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 GuestbookCommentView(c models.GuestbookComment) 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_Var24 := templ.GetChildren(ctx) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Var24 == nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var24 = templ.NopComponent |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		ctx = templ.ClearChildren(ctx) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 39, "<div><strong>") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		var templ_7745c5c3_Var25 string |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Var25, templ_7745c5c3_Err = templ.JoinStringErrs(c.AuthorName) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 132, Col: 30} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		_, 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, 40, "</strong> ") |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var26 string |  |  |  | 			var templ_7745c5c3_Var26 string | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Var26, templ_7745c5c3_Err = templ.JoinStringErrs(c.Created.Format("01-02-2006 03:04PM")) |  |  |  | 			templ_7745c5c3_Var26, templ_7745c5c3_Err = templ.JoinStringErrs(postUrl) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 133, Col: 48} |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 130, Col: 31} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var26)) |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var26)) | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 41, "<p>") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 42, "\" hx-target=\"closest div\">") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		var templ_7745c5c3_Var27 string |  |  |  | 			templ_7745c5c3_Err = commentForm(form).Render(ctx, templ_7745c5c3_Buffer) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.JoinStringErrs(c.CommentText) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 135, Col: 27} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var27)) |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 42, "</p></div>") |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 43, "</form>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		return nil |  |  |  | 		} else { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 	}) |  |  |  | 			templ_7745c5c3_Var27 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | func GuestbookDashboardCommentView(data CommonData, w models.Website, c models.GuestbookComment) 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 |  |  |  | 				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) |  |  |  | 				templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) | 
			
		
	
		
		
			
				
					
					|  |  |  | 				if !templ_7745c5c3_IsBuffer { |  |  |  | 				if !templ_7745c5c3_IsBuffer { | 
			
		
	
		
		
			
				
					
					|  |  |  | 					defer func() { |  |  |  | 					defer func() { | 
			
		
	
	
		
		
			
				
					
					|  |  | @ -621,132 +582,33 @@ func GuestbookDashboardCommentView(data CommonData, w models.Website, c models.G | 
			
		
	
		
		
			
				
					
					|  |  |  | 					}() |  |  |  | 					}() | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  | 				ctx = templ.InitializeContext(ctx) |  |  |  | 				ctx = templ.InitializeContext(ctx) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Var28 := templ.GetChildren(ctx) |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 44, "<form action=\"") | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Var28 == nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var28 = templ.NopComponent |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		ctx = templ.ClearChildren(ctx) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		commentUrl := fmt.Sprintf("%s/dashboard/guestbook/comments/%s", wUrl(w), shortIdToSlug(c.ShortId)) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		hxHeaders := fmt.Sprintf("{\"X-CSRF-Token\": \"%s\"}", data.CSRFToken) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 43, "<div><strong>") |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 				if templ_7745c5c3_Err != nil { |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 					return templ_7745c5c3_Err |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		var templ_7745c5c3_Var29 string |  |  |  | 				var templ_7745c5c3_Var28 templ.SafeURL = templ.URL(postUrl) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.JoinStringErrs(c.AuthorName) |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var28))) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 144, Col: 30} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var29)) |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 				if templ_7745c5c3_Err != nil { |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 					return templ_7745c5c3_Err |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 44, "</strong> ") |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 45, "\" method=\"post\">") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 				if templ_7745c5c3_Err != nil { |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 					return templ_7745c5c3_Err |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		var templ_7745c5c3_Var30 string |  |  |  | 				templ_7745c5c3_Err = commentForm(form).Render(ctx, templ_7745c5c3_Buffer) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinStringErrs(c.Created.Format("01-02-2006 03:04PM")) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 145, Col: 48} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var30)) |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 				if templ_7745c5c3_Err != nil { |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 					return templ_7745c5c3_Err |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 45, " ") |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 46, "</form>") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 				if templ_7745c5c3_Err != nil { |  |  |  | 				if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 					return templ_7745c5c3_Err |  |  |  | 					return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if c.Deleted.IsZero() { |  |  |  | 				return nil | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 46, "<a href=\"#\" hx-delete=\"") |  |  |  | 			}) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			templ_7745c5c3_Err = base(title, data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var27), templ_7745c5c3_Buffer) | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  | 			if templ_7745c5c3_Err != nil { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  | 				return templ_7745c5c3_Err | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var31 string |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var31, templ_7745c5c3_Err = templ.JoinStringErrs(commentUrl) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 147, Col: 46} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, 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, 47, "\" hx-target=\"closest div\" hx-headers=\"") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var32 string |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var32, templ_7745c5c3_Err = templ.JoinStringErrs(hxHeaders) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 147, Col: 95} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var32)) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 48, "\">Delete</a> <a href=\"#\" hx-put=\"") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var33 string |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var33, templ_7745c5c3_Err = templ.JoinStringErrs(commentUrl) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 148, Col: 43} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var33)) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 49, "\" hx-target=\"closest div\" hx-headers=\"") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			var templ_7745c5c3_Var34 string |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.JoinStringErrs(hxHeaders) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 148, Col: 92} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			_, 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, 50, "\">") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if !c.IsPublished { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 51, "Publish") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 					return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} else { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 52, "Hide") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 					return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 53, "</a>") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 54, "<p>") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		var templ_7745c5c3_Var35 string |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.JoinStringErrs(c.CommentText) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 157, Col: 27} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		_, 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, 55, "</p></div>") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if templ_7745c5c3_Err != nil { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 			return templ_7745c5c3_Err |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		return nil |  |  |  | 		return nil | 
			
		
	
		
		
			
				
					
					|  |  |  | 	}) |  |  |  | 	}) | 
			
		
	
	
		
		
			
				
					
					|  |  | 
 |