css e asset

This commit is contained in:
Elia Bellavista 2024-05-08 16:17:16 +02:00
parent 617f551134
commit fe475f6ce5
2 changed files with 3 additions and 1 deletions

View File

@ -6,4 +6,4 @@ app = Flask(__name__)
# Aggiungi main_css al contesto globale di Flask # Aggiungi main_css al contesto globale di Flask
@app.before_request @app.before_request
def before_request(): def before_request():
g.main_css = app_globals.main_css g.theme = app_globals.main_css

View File

@ -7,6 +7,8 @@ ckanext/__init__.py
ckanext/d4science_theme/__init__.py ckanext/d4science_theme/__init__.py
ckanext/d4science_theme/helpers.py ckanext/d4science_theme/helpers.py
ckanext/d4science_theme/plugin.py ckanext/d4science_theme/plugin.py
ckanext/d4science_theme/assets/css/d4science_theme.css
ckanext/d4science_theme/assets/js/d4science_scripts.js
ckanext/d4science_theme/controllers/__init__.py ckanext/d4science_theme/controllers/__init__.py
ckanext/d4science_theme/controllers/home.py ckanext/d4science_theme/controllers/home.py
ckanext/d4science_theme/controllers/organization.py ckanext/d4science_theme/controllers/organization.py