Skip to content

Commit

Permalink
Merge pull request ckan#8470 from aleeexgreeen/incorporate-midnight-b…
Browse files Browse the repository at this point in the history
…lue-templates

[ckan#8420] Incorporate new theme to current development branch
  • Loading branch information
amercader authored Oct 14, 2024
2 parents 842050d + 989a145 commit f405ef3
Show file tree
Hide file tree
Showing 553 changed files with 140,874 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changes/8420.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Adds `midnight_blue` templates and public folders for new UI changes and
allows the folders to be accessed in config
4 changes: 2 additions & 2 deletions ckan/config/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def load_environment(conf: Union[Config, CKANConfig]):
"""
os.environ['CKAN_CONFIG'] = cast(str, conf['__file__'])

valid_base_public_folder_names = ['public']
valid_base_public_folder_names = ['public', 'public-midnight-blue']
static_files = conf.get('ckan.base_public_folder', 'public')
conf['ckan.base_public_folder'] = static_files

Expand Down Expand Up @@ -188,7 +188,7 @@ def update_config() -> None:
helpers.load_plugin_helpers()

# Templates and CSS loading from configuration
valid_base_templates_folder_names = ['templates']
valid_base_templates_folder_names = ['templates', 'templates-midnight-blue']
templates = config.get('ckan.base_templates_folder')
config['ckan.base_templates_folder'] = templates

Expand Down
2 changes: 2 additions & 0 deletions ckan/public-midnight-blue/base/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/*.min.js
**/*.min.css
1 change: 1 addition & 0 deletions ckan/public-midnight-blue/base/css/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*debug.css
Loading

0 comments on commit f405ef3

Please sign in to comment.