mirror of
				https://github.com/usmannasir/cyberpanel.git
				synced 2025-10-31 18:36:17 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			288 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			288 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # -*- coding: utf-8 -*-
 | |
| from .views import VERSION, BUILD
 | |
| 
 | |
| def version_context(request):
 | |
|     """Add version information to all templates"""
 | |
|     return {
 | |
|         'CYBERPANEL_VERSION': VERSION,
 | |
|         'CYBERPANEL_BUILD': BUILD,
 | |
|         'CYBERPANEL_FULL_VERSION': f"{VERSION}.{BUILD}"
 | |
|     } |