Skip to main content

Bootstrap Theme 'Slate' for Alliance Auth

Project description

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.



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==2.4.1

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aa_theme_slate-2.4.1.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aa_theme_slate-2.4.1-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file aa_theme_slate-2.4.1.tar.gz.

File metadata

  • Download URL: aa_theme_slate-2.4.1.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aa_theme_slate-2.4.1.tar.gz
Algorithm Hash digest
SHA256 fc118a075c0f5211aa79d43122da7dc1ae50b0dcd635a251afae4e059dac7778
MD5 61fa8c6a86727a1b93dad675fc262e30
BLAKE2b-256 5e5b4b9c759aa96eb6bcebacd8cff1e10920c10cab470bbb23b9f73477f12f8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for aa_theme_slate-2.4.1.tar.gz:

Publisher: release.yml on ppfeufer/aa-theme-slate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aa_theme_slate-2.4.1-py3-none-any.whl.

File metadata

  • Download URL: aa_theme_slate-2.4.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aa_theme_slate-2.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a986488b0d42d518a5a0f8206b80651b8484d18f9a3461e6310cb4af6a9a898
MD5 592e7a74bcde5309c906fcce5f76ced8
BLAKE2b-256 1b16b1ce7c9b9e8fb249a8be46b72bd026b47248316731bef6537fed0dcc1d63

See more details on using hashes here.

Provenance

The following attestation bundles were made for aa_theme_slate-2.4.1-py3-none-any.whl:

Publisher: release.yml on ppfeufer/aa-theme-slate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page