load custom css
This commit is contained in:
parent
8d924d1374
commit
4d611a48d3
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue