mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
from allianceauth import hooks
|
|
from allianceauth.theme.hooks import ThemeHook
|
|
|
|
|
|
class FlatlyThemeHook(ThemeHook):
|
|
"""
|
|
Bootswatch Flatly Theme
|
|
https://bootswatch.com/flatly/
|
|
"""
|
|
|
|
def __init__(self):
|
|
ThemeHook.__init__(
|
|
self,
|
|
"Flatly",
|
|
"Flat and modern!",
|
|
html_tags={"data-theme": "flatly"},
|
|
css=[{
|
|
"url": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.3.3/flatly/bootstrap.min.css",
|
|
"integrity": "sha512-qoT4KwnRpAQ9uczPsw7GunsNmhRnYwSlE2KRCUPRQHSkDuLulCtDXuC2P/P6oqr3M5hoGagUG9pgHDPkD2zCDA=="
|
|
}],
|
|
js=[{
|
|
"url": "https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.11.8/umd/popper.min.js",
|
|
"integrity": "sha512-TPh2Oxlg1zp+kz3nFA0C5vVC6leG/6mm1z9+mA81MI5eaUVqasPLO8Cuk4gMF4gUfP5etR73rgU/8PNMsSesoQ=="
|
|
}, {
|
|
"url": "https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.min.js",
|
|
"integrity": "sha512-ykZ1QQr0Jy/4ZkvKuqWn4iF3lqPZyij9iRv6sGqLRdTPkY69YX6+7wvVGmsdBbiIfN/8OdsI7HABjvEok6ZopQ=="
|
|
}],
|
|
header_padding="4.5em"
|
|
)
|
|
|
|
|
|
@hooks.register('theme_hook')
|
|
def register_flatly_hook():
|
|
return FlatlyThemeHook()
|