|  |  |  | @ -542,60 +542,89 @@ func GuestbookView(title string, data CommonData, website models.Website, guestb | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var27 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var27, 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: 127, Col: 26} | 
		
	
		
			
				|  |  |  |  | 				if c.AuthorSite != "" { | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 48, "<a href=\"") | 
		
	
		
			
				|  |  |  |  | 					if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 						return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 					} | 
		
	
		
			
				|  |  |  |  | 					var templ_7745c5c3_Var27 templ.SafeURL = templ.URL(externalUrl(c.AuthorSite)) | 
		
	
		
			
				|  |  |  |  | 					_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var27))) | 
		
	
		
			
				|  |  |  |  | 					if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 						return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 					} | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 49, "\" target=\"_blank\">") | 
		
	
		
			
				|  |  |  |  | 					if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 						return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 					} | 
		
	
		
			
				|  |  |  |  | 					var templ_7745c5c3_Var28 string | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_Var28, 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: 129, Col: 89} | 
		
	
		
			
				|  |  |  |  | 					} | 
		
	
		
			
				|  |  |  |  | 					_, 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, 50, "</a>") | 
		
	
		
			
				|  |  |  |  | 					if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 						return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 					} | 
		
	
		
			
				|  |  |  |  | 				} else { | 
		
	
		
			
				|  |  |  |  | 					var templ_7745c5c3_Var29 string | 
		
	
		
			
				|  |  |  |  | 					templ_7745c5c3_Var29, 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: 131, Col: 24} | 
		
	
		
			
				|  |  |  |  | 					} | 
		
	
		
			
				|  |  |  |  | 					_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var29)) | 
		
	
		
			
				|  |  |  |  | 					if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 						return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 					} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, 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, 48, "</h3><time datetime=\"") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var28 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var28, templ_7745c5c3_Err = templ.JoinStringErrs(c.Created.Format(time.RFC3339)) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 128, Col: 55} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, 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, 49, "\">") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var29 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var29, 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: 128, Col: 98} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, 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, 50, "</time><p>") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 51, "</h3><time datetime=\"") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var30 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinStringErrs(c.CommentText) | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinStringErrs(c.Created.Format(time.RFC3339)) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 130, Col: 24} | 
		
	
		
			
				|  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 134, Col: 55} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, 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, 51, "</p></div>") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 52, "\">") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var31 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var31, 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: 134, Col: 98} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, 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, 53, "</time><p>") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var32 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var32, 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: 136, Col: 24} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, 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, 54, "</p></div>") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 52, "</div></main></body></html>") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 55, "</div></main></body></html>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
	
		
			
				
					
					|  |  |  | @ -620,61 +649,61 @@ func settingRadio(selected bool, name, id, value string) templ.Component { | 
		
	
		
			
				|  |  |  |  | 			}() | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var31 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var31 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var31 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var33 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var33 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var33 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 53, "<input type=\"radio\" name=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var32 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var32, templ_7745c5c3_Err = templ.JoinStringErrs(name) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 142, Col: 32} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, 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, 54, "\" id=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var33 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var33, templ_7745c5c3_Err = templ.JoinStringErrs(id) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 142, Col: 42} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, 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, 55, "\" value=\"") | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 56, "<input type=\"radio\" name=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var34 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.JoinStringErrs(value) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.JoinStringErrs(name) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 142, Col: 58} | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 148, Col: 32} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, 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, 56, "\"") | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 57, "\" id=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var35 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.JoinStringErrs(id) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 148, Col: 42} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, 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, 58, "\" value=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var36 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var36, templ_7745c5c3_Err = templ.JoinStringErrs(value) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 148, Col: 58} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var36)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 59, "\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		if selected { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 57, " selected") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 60, " selected") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 58, ">") | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 61, ">") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
	
		
			
				
					
					|  |  |  | @ -698,14 +727,14 @@ func GuestbookSettingsView(data CommonData, website models.Website) templ.Compon | 
		
	
		
			
				|  |  |  |  | 			}() | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var35 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var35 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var35 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var37 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var37 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var37 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		putUrl := fmt.Sprintf("/websites/%s/dashboard/guestbook/settings", shortIdToSlug(website.ShortId)) | 
		
	
		
			
				|  |  |  |  | 		gb := website.Guestbook | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var36 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var38 := 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 { | 
		
	
	
		
			
				
					
					|  |  |  | @ -717,7 +746,7 @@ func GuestbookSettingsView(data CommonData, website models.Website) templ.Compon | 
		
	
		
			
				|  |  |  |  | 				}() | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 59, "<div id=\"dashboard\">") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 62, "<div id=\"dashboard\">") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
	
		
			
				
					
					|  |  |  | @ -725,149 +754,149 @@ func GuestbookSettingsView(data CommonData, website models.Website) templ.Compon | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 60, "<div><h1>Guestbook Settings</h1><form hx-put=\"") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 63, "<div><h1>Guestbook Settings</h1><form hx-put=\"") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var37 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var37, templ_7745c5c3_Err = templ.JoinStringErrs(putUrl) | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var39 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var39, templ_7745c5c3_Err = templ.JoinStringErrs(putUrl) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 153, Col: 25} | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 159, Col: 25} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var37)) | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var39)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 61, "\"><input type=\"hidden\" name=\"csrf_token\" value=\"") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 64, "\"><input type=\"hidden\" name=\"csrf_token\" value=\"") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var38 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var38, templ_7745c5c3_Err = templ.JoinStringErrs(data.CSRFToken) | 
		
	
		
			
				|  |  |  |  | 			var templ_7745c5c3_Var40 string | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var40, templ_7745c5c3_Err = templ.JoinStringErrs(data.CSRFToken) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 154, Col: 66} | 
		
	
		
			
				|  |  |  |  | 				return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 160, Col: 66} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var38)) | 
		
	
		
			
				|  |  |  |  | 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var40)) | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 62, "\"><div><label>Guestbook Visibility</label> <label for=\"gb_visible_true\"><input type=\"radio\" name=\"gb_visible\" id=\"gb_visible_true\" value=\"true\"") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 65, "\"><div><label>Guestbook Visibility</label> <label for=\"gb_visible_true\"><input type=\"radio\" name=\"gb_visible\" id=\"gb_visible_true\" value=\"true\"") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			if gb.Settings.IsVisible { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 63, " checked") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 66, " checked") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 64, "> Public</label> <label for=\"gb_visible_false\"><input type=\"radio\" name=\"gb_visible\" id=\"gb_visible_false\" value=\"false\"") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 67, "> Public</label> <label for=\"gb_visible_false\"><input type=\"radio\" name=\"gb_visible\" id=\"gb_visible_false\" value=\"false\"") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			if !gb.Settings.IsVisible { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 65, " checked") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 68, " checked") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 66, "> Private</label></div><div><label>Guestbook Commenting</label> <select name=\"gb_commenting\" id=\"gb-commenting\"><option value=\"true\"") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 69, "> Private</label></div><div><label>Guestbook Commenting</label> <select name=\"gb_commenting\" id=\"gb-commenting\"><option value=\"true\"") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			if gb.Settings.IsCommentingEnabled { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 67, " selected") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, " selected") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 68, ">Enabled</option> <option value=\"1h\">Disabled for 1 Hour</option> <option value=\"4h\">Disabled for 4 Hours</option> <option value=\"8h\">Disabled for 8 Hours</option> <option value=\"24h\">Disabled for 1 Day</option> <option value=\"72h\">Disabled for 3 Days</option> <option value=\"168h\">Disabled for 7 Days</option> <option value=\"false\"") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, ">Enabled</option> <option value=\"1h\">Disabled for 1 Hour</option> <option value=\"4h\">Disabled for 4 Hours</option> <option value=\"8h\">Disabled for 8 Hours</option> <option value=\"24h\">Disabled for 1 Day</option> <option value=\"72h\">Disabled for 3 Days</option> <option value=\"168h\">Disabled for 7 Days</option> <option value=\"false\"") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			if !gb.Settings.IsCommentingEnabled { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 69, " selected") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 72, " selected") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, ">Disabled</option></select> ") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 73, ">Disabled</option></select> ") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			if !website.Guestbook.CanComment() { | 
		
	
		
			
				|  |  |  |  | 				localtime := gb.Settings.ReenableCommenting.In(data.CurrentUser.Settings.LocalTimezone) | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, "<label>Commenting re-enabled on <time value=\"") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var39 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var39, templ_7745c5c3_Err = templ.JoinStringErrs(localtime.Format(time.RFC3339)) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 180, Col: 83} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var39)) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 72, "\">") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var40 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var40, templ_7745c5c3_Err = templ.JoinStringErrs(localtime.Format("2 January 2006")) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 180, Col: 122} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var40)) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 73, " at ") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 74, "<label>Commenting re-enabled on <time value=\"") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var41 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var41, templ_7745c5c3_Err = templ.JoinStringErrs(localtime.Format("3:04PM MST")) | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var41, templ_7745c5c3_Err = templ.JoinStringErrs(localtime.Format(time.RFC3339)) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 180, Col: 160} | 
		
	
		
			
				|  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 186, Col: 83} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var41)) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 74, "</time></label>") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 75, "\">") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var42 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var42, templ_7745c5c3_Err = templ.JoinStringErrs(localtime.Format("2 January 2006")) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 186, Col: 122} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var42)) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 76, " at ") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var43 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var43, templ_7745c5c3_Err = templ.JoinStringErrs(localtime.Format("3:04PM MST")) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 186, Col: 160} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var43)) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 77, "</time></label>") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 75, "</div><div><label>Enable Widgets</label> <label for=\"gb_remote_true\"><input type=\"radio\" name=\"gb_remote\" id=\"gb_remote_true\" value=\"true\"") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 78, "</div><div><label>Enable Widgets</label> <label for=\"gb_remote_true\"><input type=\"radio\" name=\"gb_remote\" id=\"gb_remote_true\" value=\"true\"") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			if gb.Settings.AllowRemoteHostAccess { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 76, " checked") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 79, " checked") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 77, "> Yes</label> <label for=\"gb_remote_false\"><input type=\"radio\" name=\"gb_remote\" id=\"gb_remote_false\" value=\"false\"") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 80, "> Yes</label> <label for=\"gb_remote_false\"><input type=\"radio\" name=\"gb_remote\" id=\"gb_remote_false\" value=\"false\"") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			if !gb.Settings.AllowRemoteHostAccess { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 78, " checked") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 81, " checked") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 79, "> No</label></div><input type=\"submit\" value=\"Submit\"></form></div></div>") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 82, "> No</label></div><input type=\"submit\" value=\"Submit\"></form></div></div>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			return nil | 
		
	
		
			
				|  |  |  |  | 		}) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = base("Guestbook Settings", data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var36), templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = base("Guestbook Settings", data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var38), templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
	
		
			
				
					
					|  |  |  | @ -891,48 +920,48 @@ func EmbeddableGuestbookCommentForm(data CommonData, w models.Website, f forms.C | 
		
	
		
			
				|  |  |  |  | 			}() | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var42 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var42 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var42 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var44 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var44 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var44 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		postUrl := fmt.Sprintf("/websites/%s/guestbook/comments/create?headless=true", shortIdToSlug(w.ShortId)) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 80, "<html><head><link href=\"/static/css/classless.min.css\" rel=\"stylesheet\"></head><body>") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var43 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var43, templ_7745c5c3_Err = templ.JoinStringErrs(data.Flash) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 208, Col: 15} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var43)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 81, "<form action=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var44 templ.SafeURL = templ.URL(postUrl) | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var44))) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 82, "\" method=\"post\"><input type=\"hidden\" name=\"csrf_token\" value=\"") | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 83, "<html><head><link href=\"/static/css/classless.min.css\" rel=\"stylesheet\"></head><body>") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var45 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var45, templ_7745c5c3_Err = templ.JoinStringErrs(data.CSRFToken) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var45, templ_7745c5c3_Err = templ.JoinStringErrs(data.Flash) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 210, Col: 65} | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 214, Col: 15} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var45)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 83, "\">") | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 84, "<form action=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var46 templ.SafeURL = templ.URL(postUrl) | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var46))) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 85, "\" method=\"post\"><input type=\"hidden\" name=\"csrf_token\" value=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var47 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var47, templ_7745c5c3_Err = templ.JoinStringErrs(data.CSRFToken) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 216, Col: 65} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var47)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 86, "\">") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
	
		
			
				
					
					|  |  |  | @ -940,7 +969,7 @@ func EmbeddableGuestbookCommentForm(data CommonData, w models.Website, f forms.C | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 84, "</form></body></html>") | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 87, "</form></body></html>") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
	
		
			
				
					
					|  |  |  | @ -964,12 +993,12 @@ func AllGuestbooksView(data CommonData, websites []models.Website) templ.Compone | 
		
	
		
			
				|  |  |  |  | 			}() | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var46 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var46 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var46 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var48 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var48 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var48 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var47 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var49 := 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 { | 
		
	
	
		
			
				
					
					|  |  |  | @ -981,50 +1010,165 @@ func AllGuestbooksView(data CommonData, websites []models.Website) templ.Compone | 
		
	
		
			
				|  |  |  |  | 				}() | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			ctx = templ.InitializeContext(ctx) | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 85, "<div><h1>All Guestbooks</h1><p>This page exists only for testing the service.</p><ul>") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 88, "<div><h1>All Guestbooks</h1><p>This page exists only for testing the service.</p><ul>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			for _, w := range websites { | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 86, "<li>") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 89, "<li>") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				gbUrl := fmt.Sprintf("/websites/%s/guestbook", shortIdToSlug(w.ShortId)) | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 87, "<a href=\"") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 90, "<a href=\"") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var48 templ.SafeURL = templ.URL(gbUrl) | 
		
	
		
			
				|  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var48))) | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var50 templ.SafeURL = templ.URL(gbUrl) | 
		
	
		
			
				|  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var50))) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 88, "\" target=\"_blank\">") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 91, "\" target=\"_blank\">") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var49 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var49, templ_7745c5c3_Err = templ.JoinStringErrs(w.Name) | 
		
	
		
			
				|  |  |  |  | 				var templ_7745c5c3_Var51 string | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.JoinStringErrs(w.Name) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 228, Col: 59} | 
		
	
		
			
				|  |  |  |  | 					return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 234, Col: 59} | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var49)) | 
		
	
		
			
				|  |  |  |  | 				_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var51)) | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 89, "</a></li>") | 
		
	
		
			
				|  |  |  |  | 				templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 92, "</a></li>") | 
		
	
		
			
				|  |  |  |  | 				if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 					return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 				} | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 90, "</ul></div>") | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 93, "</ul></div>") | 
		
	
		
			
				|  |  |  |  | 			if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 				return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 			} | 
		
	
		
			
				|  |  |  |  | 			return nil | 
		
	
		
			
				|  |  |  |  | 		}) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = base("All Guestbooks", data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var47), templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = base("All Guestbooks", data).Render(templ.WithChildren(ctx, templ_7745c5c3_Var49), templ_7745c5c3_Buffer) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		return nil | 
		
	
		
			
				|  |  |  |  | 	}) | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | func GuestbookCommentCreateRemoteErrorView(url, err string) 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_Var52 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var52 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var52 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 94, "<html><head><meta http-equiv=\"refresh\" content=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var53 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var53, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("3; url='%s'", templ.URL(externalUrl(url)))) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 245, Col: 95} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var53)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 95, "\"></head><body><p>An error occurred while posting comment. ") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var54 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinStringErrs(err) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 249, Col: 50} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 96, ". Redirecting.</p><p><a href=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var55 templ.SafeURL = templ.URL(url) | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var55))) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 97, "\">Redirect</a></p></body></html>") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		return nil | 
		
	
		
			
				|  |  |  |  | 	}) | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | func GuestbookCommentCreateRemoteSuccessView(url string) 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_Var56 := templ.GetChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Var56 == nil { | 
		
	
		
			
				|  |  |  |  | 			templ_7745c5c3_Var56 = templ.NopComponent | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		ctx = templ.ClearChildren(ctx) | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 98, "<html><head><meta http-equiv=\"refresh\" content=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var57 string | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Var57, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("3; url='%s'", templ.URL(externalUrl(url)))) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/views/guestbooks.templ`, Line: 261, Col: 95} | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var57)) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 99, "\"></head><body><p>Comment successfully posted. Redirecting.</p><p><a href=\"") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		var templ_7745c5c3_Var58 templ.SafeURL = templ.URL(url) | 
		
	
		
			
				|  |  |  |  | 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var58))) | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
		
			
				|  |  |  |  | 		templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 100, "\">Redirect</a></p></body></html>") | 
		
	
		
			
				|  |  |  |  | 		if templ_7745c5c3_Err != nil { | 
		
	
		
			
				|  |  |  |  | 			return templ_7745c5c3_Err | 
		
	
		
			
				|  |  |  |  | 		} | 
		
	
	
		
			
				
					
					|  |  |  | 
 |