mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-18 10:07:27 +02:00
load custom css
This commit is contained in:
@@ -111,6 +111,9 @@
|
||||
|
||||
<!-- JS Ends -->
|
||||
|
||||
<style>
|
||||
{{ cosmetic.MainDashboardCSS | safe }}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -41,6 +41,20 @@ class httpProc:
|
||||
self.data['ipAddress'] = ipAddress
|
||||
self.data['fullName'] = '%s %s' % (admin.firstName, admin.lastName)
|
||||
|
||||
### Load Custom CSS
|
||||
try:
|
||||
from baseTemplate.models import CyberPanelCosmetic
|
||||
cosmetic = CyberPanelCosmetic.objects.get(pk=1)
|
||||
self.data['cosmetic'] = cosmetic
|
||||
except:
|
||||
try:
|
||||
from baseTemplate.models import CyberPanelCosmetic
|
||||
cosmetic = CyberPanelCosmetic()
|
||||
cosmetic.save()
|
||||
self.data['cosmetic'] = cosmetic
|
||||
except:
|
||||
pass
|
||||
|
||||
self.data.update(currentACL)
|
||||
|
||||
return render(self.request, self.templateName, self.data)
|
||||
|
||||
Reference in New Issue
Block a user