forked from gitea/gitea
		
	 023e937141
			
		
	
	
		023e937141
		
			
		
	
	
	
	
		
			
			Part of https://github.com/go-gitea/gitea/issues/27097: - `gitea` theme is renamed to `gitea-light` - `arc-green` theme is renamed to `gitea-dark` - `auto` theme is renamed to `gitea-auto` I put both themes in separate CSS files, removing all colors from the base CSS. Existing users will be migrated to the new theme names. The dark theme recolor will follow in a separate PR. ## ⚠️ BREAKING ⚠️ 1. If there are existing custom themes with the names `gitea-light` or `gitea-dark`, rename them before this upgrade and update the `theme` column in the `user` table for each affected user. 2. The theme in `<html>` has moved from `class="theme-name"` to `data-theme="name"`, existing customizations that depend on should be updated. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
		
			
				
	
	
		
			51 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="{{ctx.Locale.Lang}}" data-theme="{{ThemeName .SignedUser}}">
 | |
| <head>
 | |
| 	<meta name="viewport" content="width=device-width, initial-scale=1">
 | |
| 	<title>{{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}}{{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}</title>
 | |
| 	{{if .ManifestData}}<link rel="manifest" href="data:{{.ManifestData}}">{{end}}
 | |
| 	<meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{end}}">
 | |
| 	<meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}">
 | |
| 	<meta name="keywords" content="{{MetaKeywords}}">
 | |
| 	<meta name="referrer" content="no-referrer">
 | |
| {{if .GoGetImport}}
 | |
| 	<meta name="go-import" content="{{.GoGetImport}} git {{.RepoCloneLink.HTTPS}}">
 | |
| 	<meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
 | |
| {{end}}
 | |
| {{if and .EnableFeed .FeedURL}}
 | |
| 	<link rel="alternate" type="application/atom+xml" title="" href="{{.FeedURL}}.atom">
 | |
| 	<link rel="alternate" type="application/rss+xml" title="" href="{{.FeedURL}}.rss">
 | |
| {{end}}
 | |
| 	<link rel="icon" href="{{AssetUrlPrefix}}/img/favicon.svg" type="image/svg+xml">
 | |
| 	<link rel="alternate icon" href="{{AssetUrlPrefix}}/img/favicon.png" type="image/png">
 | |
| 	{{template "base/head_script" .}}
 | |
| 	<noscript>
 | |
| 		<style>
 | |
| 			.dropdown:hover > .menu { display: block; }
 | |
| 			.ui.secondary.menu .dropdown.item > .menu { margin-top: 0; }
 | |
| 		</style>
 | |
| 	</noscript>
 | |
| 	{{template "base/head_opengraph" .}}
 | |
| 	{{template "base/head_style" .}}
 | |
| 	{{template "custom/header" .}}
 | |
| </head>
 | |
| <body>
 | |
| 	{{ctx.DataRaceCheck $.Context}}
 | |
| 	{{template "custom/body_outer_pre" .}}
 | |
| 
 | |
| 	<div class="full height">
 | |
| 		<noscript>{{ctx.Locale.Tr "enable_javascript"}}</noscript>
 | |
| 
 | |
| 		{{template "custom/body_inner_pre" .}}
 | |
| 
 | |
| 		{{if not .PageIsInstall}}
 | |
| 			{{template "base/head_navbar" .}}
 | |
| 		{{end}}
 | |
| 
 | |
| {{if false}}
 | |
| 	{{/* to make html structure "likely" complete to prevent IDE warnings */}}
 | |
| 	</div>
 | |
| </body>
 | |
| </html>
 | |
| {{end}}
 |