mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-13 00:36:10 +01:00
bug fix: make sure free scan works
This commit is contained in:
10
baseTemplate/context_processors.py
Normal file
10
baseTemplate/context_processors.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- 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}"
|
||||
}
|
||||
Reference in New Issue
Block a user