func (VS *Server) userToHTML(c *gin.Context, u User) UserHTML {
	var user UserHTML
	if u.Role == Worker {
		user.Village = VS.getVillageByID(c, u.IDVillage, "h_view", "userToHTML", "user.Village = VS.getVillageByID").Name
	}
	user.ID = u.ID
	user.Age = u.Age
	user.Balance = u.Balance
	user.Photo = "/local/users/" + u.Username + "/" + u.Photo
	user.Role = string(u.Role)
	user.Surname = u.Surname
	user.Name = u.Name
	user.Gender = string(u.Gender)
	user.Tribe = string(u.Tribe)
	user.Story = u.Story
	user.Username = u.Username
	user.IDVillage = u.IDVillage
	return user
}
// Create the human readable information for the Users element
Create the human readable information for the Users element
// Create the human readable information for the Users element
func (VS *Server) userToHTML(c *gin.Context, u User) UserHTML {
	var user UserHTML
	if u.Role == Worker {
		user.Village = VS.getVillageByID(c, u.IDVillage, "h_view", "userToHTML", "user.Village = VS.getVillageByID").Name
	}
	user.ID = u.ID
	user.Age = u.Age
	user.Balance = u.Balance
	user.Photo = "/local/users/" + u.Username + "/" + u.Photo
	user.Role = string(u.Role)
	user.Surname = u.Surname
	user.Name = u.Name
	user.Gender = string(u.Gender)
	user.Tribe = string(u.Tribe)
	user.Story = u.Story
	user.Username = u.Username
	user.IDVillage = u.IDVillage
	return user
}
func ( VS * Server ) userToHTML ( c * gin . Context , u User ) UserHTML { var user UserHTML if u . Role == Worker { user . Village = VS . getVillageByID ( c , u . IDVillage , " " , " " , " " ) . Name } user . ID = u . ID user . Age = u . Age user . Balance = u . Balance user . Photo = " " + u . Username + " " + u . Photo user . Role = string ( u . Role ) user . Surname = u . Surname user . Name = u . Name user . Gender = string ( u . Gender ) user . Tribe = string ( u . Tribe ) user . Story = u . Story user . Username = u . Username user . IDVillage = u . IDVillage return user }
Create the human readable information for the Users element
Create the human readable information for the Users element