Skip to content

feat: CMD-164 custom styles via setting#840

Merged
wesleyboar merged 7 commits intomainfrom
feat/CMD-164-custom-styles-via-setting
Jul 24, 2024
Merged

feat: CMD-164 custom styles via setting#840
wesleyboar merged 7 commits intomainfrom
feat/CMD-164-custom-styles-via-setting

Conversation

@wesleyboar
Copy link
Copy Markdown
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