Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: CMD-164 custom styles via setting #840

Merged
merged 7 commits into from
Jul 24, 2024

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Jul 5, 2024

Overview

New setting PORTAL_STYLES to load custom stylesheets.

Related

Changes

  • added setting PORTAL_STYLES
  • changed template to load styles via PORTAL_STYLES

Testing

  1. Add PORTAL_STYLES to taccsite_cms/settings_local.py (or …/camino/cms.settings_custom.py):
    PORTAL_STYLES = [{
        "is_remote": True,
        "path": "https://cdn.jsdelivr.net/gh/TACC/Core-CMS-Custom@2cdc59f/example_cms/src/apps/example_app/static/example_app/css/example_app.css",
    }]
  2. Load CMS in browser.
  3. Verify example stylesheet is loaded.

UI

markup network
markup network
remote
stylesheet

@wesleyboar wesleyboar marked this pull request as ready for review July 5, 2024 19:13
@wesleyboar wesleyboar merged commit 36287dc into main Jul 24, 2024
@wesleyboar wesleyboar deleted the feat/CMD-164-custom-styles-via-setting branch July 24, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant