mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Implementing the "theme-color" meta tag.
Used by Android >= 5.0 to make the top bar colored. Reference: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
This commit is contained in:
		| @@ -98,6 +98,9 @@ var Funcs template.FuncMap = map[string]interface{}{ | ||||
| 		return strings.Replace(strings.Replace(str, "%", "%25", -1), "#", "%23", -1) | ||||
| 	}, | ||||
| 	"RenderCommitMessage": RenderCommitMessage, | ||||
| 	"ThemeColorMetaTag": func() string { | ||||
| 		return setting.ThemeColorMetaTag | ||||
| 	}, | ||||
| } | ||||
|  | ||||
| func Safe(raw string) template.HTML { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user