Browse Apps

Slate Theme for Alliance Auth

Bootstrap Theme 'Slate' for Alliance Auth


Alliance Auth Theme: Slate

Version License Python Django pre-commit pre-commit.ci status Code Style: black Automated Checks codecov Contributor Covenant Discord

ko-fi

This is the Bootstrap theme Slate converted into a theme for Alliance auth.

<hr /> <hr />

AA Theme: Slate

Installation

[!NOTE]

Alliance Auth Theme Slate >= 2.0.0 needs at least Alliance Auth v4.0.0!

Please make sure to update your Alliance Auth instance before you install this module or update to the latest version, otherwise an update to Alliance Auth will be pulled in unsupervised.

The last version of Alliance Auth Theme Slate that supports Alliance Auth v3 is 1.7.1.

pip install aa-theme-slate

Now open your local.py and add the following right below your INSTALLED_APPS:

# Slate Theme - https://github.com/ppfeufer/aa-theme-slate
INSTALLED_APPS.insert(0, "aa_theme_slate")

if "aa_theme_slate" in INSTALLED_APPS:
    # Remove all other themes
    # If you want to use Slate as the only theme, you need to remove all other themes.
    # INSTALLED_APPS.remove("allianceauth.theme.darkly")
    # INSTALLED_APPS.remove("allianceauth.theme.flatly")
    # INSTALLED_APPS.remove("allianceauth.theme.materia")

    # If you are using AA-GDPR, you need to remove the Darkly, Flatly and Materia themes
    # added by AA-GDPR as well.
    # if "aagdpr" in INSTALLED_APPS:
    #     INSTALLED_APPS.remove("aagdpr.theme.darkly")
    #     INSTALLED_APPS.remove("aagdpr.theme.flatly")
    #     INSTALLED_APPS.remove("aagdpr.theme.materia")

    INSTALLED_APPS += [
        "aa_theme_slate.theme.slate",
    ]

    # Set Slate Bootstrap Theme for Alliance Auth as the default theme (optional)
    DEFAULT_THEME = "aa_theme_slate.theme.slate.auth_hooks.AaSlateThemeHook"
    DEFAULT_THEME_DARK = "aa_theme_slate.theme.slate.auth_hooks.AaSlateThemeHook"  # Legacy AAv3 user.profile.night_mode=1

Important

If you are using AA-GDPR, the template stuff needs to be after the AA_GDPR entry, like this:

# GDPR Compliance
INSTALLED_APPS.insert(0, "aagdpr")
AVOID_CDN = True


# Slate Thame - https://github.com/ppfeufer/aa-theme-slate
INSTALLED_APPS.insert(0, "aa_theme_slate")

No reviews yet...

Python Requirements

  • allianceauth<5,>=4.3
  • coverage; extra == "tests-allianceauth-latest"
  • django-webtest; extra == "tests-allianceauth-latest"

Required Python packages to be installed and other Python requirement.

App Dependencies


Required apps:

    -


Used by apps:

    -

Dependencies to other apps registered in this app directory.

Classifiers

  • Environment :: Web Environment
  • Framework :: Django
  • Framework :: Django :: 4.2
  • Intended Audience :: Developers
  • License :: OSI Approved :: GNU General Public License v3 (GPLv3)
  • Operating System :: OS Independent
  • Programming Language :: Python
  • Programming Language :: Python :: 3 :: Only
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
  • Programming Language :: Python :: 3.12
  • Topic :: Internet :: WWW/HTTP
  • Topic :: Internet :: WWW/HTTP :: Dynamic Content

Version

2.1.0

License

GPLv3

Homepage

  https://github.com/ppfeufer/aa-theme-slate

PyPI

  https://pypi.org/project/aa-theme-slate/

Last updated

2 months, 2 weeks ago

First published

3 years, 7 months ago

Category

Themes

Rating

-

Authors

Rounon Dax

Maintainers

Rounon Dax Rounon Dax

Please login to see more options.