mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 06:21:11 +00:00 
			
		
		
		
	Add slogan config (#3752)
This is a PR for #3616 Currently added a new optional config `SLOGAN` in ini file. When this config is set title page is modified in APP_NAME [ - SLOGAN] Example in image below  Add the new config value in the admin settings page (readonly)  ## TODO * [x] Add the possibility to add the `SLOGAN` config from the installation form * [ ] Update https://forgejo.org/docs/next/admin/config-cheat-sheet Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3752 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: mirko <mirko.perillo@gmail.com> Co-committed-by: mirko <mirko.perillo@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								dedcd6c647
							
						
					
				
			
			
				commit
				
					
						f015846c11
					
				
			
		
					 19 changed files with 138 additions and 13 deletions
				
			
		|  | @ -7,6 +7,8 @@ | |||
| 			<dl class="admin-dl-horizontal"> | ||||
| 				<dt>{{ctx.Locale.Tr "admin.config.app_name"}}</dt> | ||||
| 				<dd>{{AppName}}</dd> | ||||
| 				<dt>{{ctx.Locale.Tr "admin.config.app_slogan"}}</dt> | ||||
| 				<dd>{{AppSlogan}}</dd> | ||||
| 				<dt>{{ctx.Locale.Tr "admin.config.app_ver"}}</dt> | ||||
| 				<dd>{{AppVer}}{{.AppBuiltWith}}</dd> | ||||
| 				<dt>{{ctx.Locale.Tr "admin.config.custom_conf"}}</dt> | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ | |||
| <head> | ||||
| 	<meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
| 	{{/* Display `- .Repository.FullName` only if `.Title` does not already start with that. */}} | ||||
| 	<title>{{if .Title}}{{.Title}} - {{end}}{{if and (.Repository.Name) (not (StringUtils.HasPrefix .Title .Repository.FullName))}}{{.Repository.FullName}} - {{end}}{{AppName}}</title> | ||||
| 	<title>{{if .Title}}{{.Title}} - {{end}}{{if and (.Repository.Name) (not (StringUtils.HasPrefix .Title .Repository.FullName))}}{{.Repository.FullName}} - {{end}}{{AppDisplayName}}</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}}"> | ||||
|  |  | |||
|  | @ -38,10 +38,10 @@ | |||
| 		<meta property="og:image" content="{{.Repository.Owner.AvatarLink ctx}}"> | ||||
| 	{{end}} | ||||
| {{else}} | ||||
| 	<meta property="og:title" content="{{AppName}}"> | ||||
| 	<meta property="og:title" content="{{AppDisplayName}}"> | ||||
| 	<meta property="og:type" content="website"> | ||||
| 	<meta property="og:image" content="{{AssetUrlPrefix}}/img/logo.png"> | ||||
| 	<meta property="og:url" content="{{AppUrl}}"> | ||||
| 	<meta property="og:description" content="{{MetaDescription}}"> | ||||
| {{end}} | ||||
| <meta property="og:site_name" content="{{AppName}}"> | ||||
| <meta property="og:site_name" content="{{AppDisplayName}}"> | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ | |||
| 			<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}"> | ||||
| 			<div class="hero"> | ||||
| 				<h1 class="ui icon header title"> | ||||
| 					{{AppName}} | ||||
| 					{{AppDisplayName}} | ||||
| 				</h1> | ||||
| 				<h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2> | ||||
| 			</div> | ||||
|  |  | |||
|  | @ -107,6 +107,11 @@ | |||
| 						<input id="app_name" name="app_name" value="{{.app_name}}" required> | ||||
| 						<span class="help">{{ctx.Locale.Tr "install.app_name_helper"}}</span> | ||||
| 					</div> | ||||
| 					<div class="inline field"> | ||||
| 						<label for="app_slogan">{{ctx.Locale.Tr "install.app_slogan"}}</label> | ||||
| 						<input id="app_slogan" name="app_slogan" value="{{.app_slogan}}"> | ||||
| 						<span class="help">{{ctx.Locale.Tr "install.app_slogan_helper"}}</span> | ||||
| 					</div> | ||||
| 					<div class="inline required field {{if .Err_RepoRootPath}}error{{end}}"> | ||||
| 						<label for="repo_root_path">{{ctx.Locale.Tr "install.repo_path"}}</label> | ||||
| 						<input id="repo_root_path" name="repo_root_path" value="{{.repo_root_path}}" required> | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ | |||
| <html lang="{{ctx.Locale.Lang}}" data-theme="{{ThemeName .SignedUser}}"> | ||||
| <head> | ||||
| 	<meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
| 	<title>{{ctx.Locale.Tr "error.server_internal"}} - {{AppName}}</title> | ||||
| 	<title>{{ctx.Locale.Tr "error.server_internal"}} - {{AppDisplayName}}</title> | ||||
| 	<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_style" .}} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue