mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Hide home button when landing page is not set to home (#4651)
This commit is contained in:
		
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							4ae5a54c1f
						
					
				
				
					commit
					56d931aeac
				
			| @@ -261,9 +261,14 @@ func Contexter() macaron.Handler { | ||||
| 		log.Debug("Session ID: %s", sess.ID()) | ||||
| 		log.Debug("CSRF Token: %v", ctx.Data["CsrfToken"]) | ||||
|  | ||||
| 		ctx.Data["IsLandingPageHome"] = setting.LandingPageURL == setting.LandingPageHome | ||||
| 		ctx.Data["IsLandingPageExplore"] = setting.LandingPageURL == setting.LandingPageExplore | ||||
| 		ctx.Data["IsLandingPageOrganizations"] = setting.LandingPageURL == setting.LandingPageOrganizations | ||||
|  | ||||
| 		ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton | ||||
| 		ctx.Data["ShowFooterBranding"] = setting.ShowFooterBranding | ||||
| 		ctx.Data["ShowFooterVersion"] = setting.ShowFooterVersion | ||||
|  | ||||
| 		ctx.Data["EnableSwagger"] = setting.API.EnableSwagger | ||||
| 		ctx.Data["EnableOpenIDSignIn"] = setting.Service.EnableOpenIDSignIn | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user