Skip to content

Commit

Permalink
Merge pull request #77 from TACC/task/FP-1194
Browse files Browse the repository at this point in the history
Updating to match Core CMS settings structure
  • Loading branch information
taoteg authored Sep 21, 2021
2 parents 50882bb + ca0cf94 commit f52e865
Show file tree
Hide file tree
Showing 31 changed files with 678 additions and 547 deletions.
60 changes: 0 additions & 60 deletions a2cps-cms/secrets.py

This file was deleted.

32 changes: 32 additions & 0 deletions a2cps-cms/settings_custom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# CUSTOM SETTINGS VALUES.
# TACC WMA CMS SITE:
# *.A2CPS.TACC.UTEXAS.EDU

########################
# DJANGO CMS SETTINGS
########################

CMS_TEMPLATES = (
('a2cps-cms/templates/standard.html', 'Standard'),
('a2cps-cms/templates/fullwidth.html', 'Full Width'),
('guide.html', 'Guide'),
('guides/getting_started.html', 'Guide: Getting Started'),
('guides/data_transfer.html', 'Guide: Data Transfer'),
('guides/data_transfer.globus.html', 'Guide: Globus Data Transfer'),
('guides/portal_technology.html', 'Guide: Portal Technology Stack')
)

########################
# LOGOS
########################

LOGO = [
"a2cps",
"a2cps-cms/img/org_logos/a2cps.png",
"",
"/",
"_self",
"A2CPS: Acute to Chronic Pain Signatures",
"anonymous",
"True"
]
7 changes: 7 additions & 0 deletions core-cms/settings_custom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# CUSTOM SETTINGS VALUES.
# TACC WMA CMS SITE:
# *.CEP.TACC.UTEXAS.EDU

# SHOULD USE ALMOST ALL DEFAULT VALUES.

CEP_AUTH_VERIFICATION_ENDPOINT='https://dev.cep.tacc.utexas.edu'
69 changes: 0 additions & 69 deletions example-cms/secrets.py

This file was deleted.

68 changes: 68 additions & 0 deletions example-cms/settings_custom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# CUSTOM SETTINGS VALUES.
# TACC WMA CMS SITE:
# *.PROJECT-DOMAIN.TACC.UTEXAS.EDU

# FAQ: Some _VARIABLES are duplicated from settings.py (but prefixed with "_")
# because current infrastructure lacks ability to reference default values

########################
# DJANGO CMS SETTINGS
########################

CMS_TEMPLATES = (
('example-cms/templates/fullwidth.html', 'Fullwidth'),
# Support standard template for demo purposes
('fullwidth.html', 'Standard Fullwidth'),
# Support Portal pages for demo purposes
('home_portal.html', 'Standard Portal Homepage'),
('guide.html', 'Guide'),
('guides/getting_started.html', 'Guide: Getting Started'),
('guides/data_transfer.html', 'Guide: Data Transfer'),
('guides/data_transfer.globus.html', 'Guide: Globus Data Transfer'),
('guides/portal_technology.html', 'Guide: Portal Technology Stack')
)

########################
# BRANDING
########################

_NSF_BRANDING = [
"nsf",
"site_cms/img/org_logos/nsf-white.png",
"branding-nsf",
"https://www.nsf.gov/",
"_blank",
"NSF Logo",
"anonymous",
"True"
]

_TACC_BRANDING = [
"tacc",
"site_cms/img/org_logos/tacc-white.png",
"branding-tacc",
"https://www.tacc.utexas.edu/",
"_blank",
"TACC Logo",
"anonymous",
"True"
]

_UTEXAS_BRANDING = [
"utexas",
"site_cms/img/org_logos/utaustin-white.png",
"branding-utaustin",
"https://www.utexas.edu/",
"_blank",
"University of Texas at Austin Logo",
"anonymous",
"True"
]

BRANDING = [ _NSF_BRANDING, _TACC_BRANDING, _UTEXAS_BRANDING ]

########################
# PORTAL
########################

INCLUDES_CORE_PORTAL = False
81 changes: 0 additions & 81 deletions frontera-cms/secrets.py

This file was deleted.

75 changes: 75 additions & 0 deletions frontera-cms/settings_custom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# CUSTOM SETTINGS VALUES.
# TACC WMA CMS SITE:
# *.FRONTERA-PORTAL.TACC.UTEXAS.EDU

# FAQ: Some _VARIABLES are duplicated from settings.py (but prefixed with "_")
# because current infrastructure lacks ability to reference default values

########################
# DJANGO CMS SETTINGS
########################

CMS_TEMPLATES = (
('frontera-cms/templates/fullwidth.html', 'Fullwidth'),
('fullwidth.html', 'DEPRECATED Fullwidth'),
('frontera-cms/templates/home.html', 'Homepage'),
('guide.html', 'Guide'),
('guides/getting_started.html', 'Guide: Getting Started'),
('guides/data_transfer.html', 'Guide: Data Transfer'),
('guides/data_transfer.globus.html', 'Guide: Globus Data Transfer'),
('guides/portal_technology.html', 'Guide: Portal Technology Stack')
)

########################
# BRANDING
########################

_NSF_BRANDING = [
"nsf",
"site_cms/img/org_logos/nsf-white.png",
"branding-nsf",
"https://www.nsf.gov/",
"_blank",
"NSF Logo",
"anonymous",
"True"
]

_FRONTERA_TACC_BRANDING = [
"tacc",
"frontera-cms/img/org_logos/tacc-white.png", # TACC/Core-CMS#283 & #284
"branding-tacc",
"https://www.tacc.utexas.edu/",
"_blank",
"TACC Logo",
"anonymous",
"True"
]

_UTEXAS_BRANDING = [
"utexas",
"site_cms/img/org_logos/utaustin-white.png",
"branding-utaustin",
"https://www.utexas.edu/",
"_blank",
"University of Texas at Austin Logo",
"anonymous",
"True"
]

BRANDING = [ _NSF_BRANDING, _FRONTERA_TACC_BRANDING, _UTEXAS_BRANDING ]

########################
# LOGOS
########################

LOGO = [
"frontera",
"frontera-cms/img/org_logos/frontera-white-solo.png",
"",
"/",
"_self",
"Frontera Logo",
"anonymous",
"True"
]
Loading

0 comments on commit f52e865

Please sign in to comment.