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

Add eduhelx-dev-student and eduhelx-dev-profesor brands #368

Merged
merged 5 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ DOCKER_TAG := ${VERSION}
DOCKER_IMAGE := ${DOCKER_OWNER}/${DOCKER_APP}:$(DOCKER_TAG)
SECRET_KEY := $(shell openssl rand -base64 12)
APP_LIST ?= api appstore core frontend middleware product
BRANDS := braini bdc heal restartr scidas eduhelx argus tracs eduhelx-sandbox eduhelx-dev
BRANDS := braini bdc heal restartr scidas eduhelx argus tracs eduhelx-sandbox eduhelx-dev eduhelx-dev-student eduhelx-dev-professor eduhelx-student eduhelx-professor
MANAGE := ${PYTHON} appstore/manage.py
SETTINGS_MODULE := ${DJANGO_SETTINGS_MODULE}

Expand Down
14 changes: 14 additions & 0 deletions appstore/appstore/settings/eduhelx-dev-professor_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from .base import *
from product.configuration import ProductSettings, ProductColorScheme, ProductLink

# TODO remove Application brand once the new frontend is complete and
# the django templates in core are removed.
APPLICATION_BRAND = "eduhelx-dev-professor"

PRODUCT_SETTINGS = ProductSettings(
brand="eduhelx-dev-professor",
title="EduHeLx Dev Professor",
logo_url="/static/images/eduhelx-dev-professor/logo.png",
color_scheme=ProductColorScheme("#666666", "#e6e6e6"), #TBD
links=[],
)
14 changes: 14 additions & 0 deletions appstore/appstore/settings/eduhelx-dev-student_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from .base import *
from product.configuration import ProductSettings, ProductColorScheme, ProductLink

# TODO remove Application brand once the new frontend is complete and
# the django templates in core are removed.
APPLICATION_BRAND = "eduhelx-dev-student"

PRODUCT_SETTINGS = ProductSettings(
brand="eduhelx-dev-student",
title="EduHeLx Dev Student",
logo_url="/static/images/eduhelx-dev-student/logo.png",
color_scheme=ProductColorScheme("#666666", "#e6e6e6"), #TBD
links=[],
)
14 changes: 14 additions & 0 deletions appstore/appstore/settings/eduhelx-professor_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from .base import *
from product.configuration import ProductSettings, ProductColorScheme, ProductLink

# TODO remove Application brand once the new frontend is complete and
# the django templates in core are removed.
APPLICATION_BRAND = "eduhelx-professor"

PRODUCT_SETTINGS = ProductSettings(
brand="eduhelx-professor",
title="EduHeLx Professor",
logo_url="/static/images/eduhelx-professor/logo.png",
color_scheme=ProductColorScheme("#666666", "#e6e6e6"), #TBD
links=[],
)
14 changes: 14 additions & 0 deletions appstore/appstore/settings/eduhelx-student_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from .base import *
from product.configuration import ProductSettings, ProductColorScheme, ProductLink

# TODO remove Application brand once the new frontend is complete and
# the django templates in core are removed.
APPLICATION_BRAND = "eduhelx-student"

PRODUCT_SETTINGS = ProductSettings(
brand="eduhelx-student",
title="EduHeLx",
logo_url="/static/images/eduhelx-student/logo.png",
color_scheme=ProductColorScheme("#666666", "#e6e6e6"), #TBD
links=[],
)
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions appstore/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ def get_brand_details(brand):
"heal": {"name": "NIH Heal Initiative", "logo": "logo.png"},
"argus": {"name": "Argus Array", "logo": "logo.png"},
"eduhelx": {"name": "EduHelx", "logo": "logo.png"},
"eduhelx-dev": {"name": "EduHelx", "logo": "logo.png"},
"eduhelx-dev-student": {"name": "EduHelx", "logo": "logo.png"},
"eduhelx-dev-professor": {"name": "EduHelx", "logo": "logo.png"},
"eduhelx-student": {"name": "EduHelx", "logo": "logo.png"},
"eduhelx-professor": {"name": "EduHelx", "logo": "logo.png"},
"testing": {"name": "Testing", "logo": "logo.png"},
"ordrd": {"name": "Ordr D", "logo": "logo.png"},
}[brand]
Expand Down
Loading