mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-02 20:06:06 +01:00 
			
		
		
		
	Add register mail tpl
This commit is contained in:
		@@ -67,25 +67,6 @@ func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string
 | 
			
		||||
	return code
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// TODO:
 | 
			
		||||
func RenderTemplate(TplNames string, Data map[interface{}]interface{}) string {
 | 
			
		||||
	// if beego.RunMode == "dev" {
 | 
			
		||||
	// 	beego.BuildTemplate(beego.ViewsPath)
 | 
			
		||||
	// }
 | 
			
		||||
 | 
			
		||||
	// ibytes := bytes.NewBufferString("")
 | 
			
		||||
	// if _, ok := beego.BeeTemplates[TplNames]; !ok {
 | 
			
		||||
	// 	panic("can't find templatefile in the path:" + TplNames)
 | 
			
		||||
	// }
 | 
			
		||||
	// err := beego.BeeTemplates[TplNames].ExecuteTemplate(ibytes, TplNames, Data)
 | 
			
		||||
	// if err != nil {
 | 
			
		||||
	// 	beego.Trace("template Execute err:", err)
 | 
			
		||||
	// }
 | 
			
		||||
	// icontent, _ := ioutil.ReadAll(ibytes)
 | 
			
		||||
	// return string(icontent)
 | 
			
		||||
	return "not implement yet"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// AvatarLink returns avatar link by given e-mail.
 | 
			
		||||
func AvatarLink(email string) string {
 | 
			
		||||
	return "http://1.gravatar.com/avatar/" + EncodeMd5(email)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user