mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Hide home button when landing page is not set to home (#4651)
This commit is contained in:
		
				
					committed by
					
						
						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