-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/add-instagram-to-social-media
- Loading branch information
Showing
60 changed files
with
4,011 additions
and
18,695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
.git | ||
.nx | ||
.cache | ||
node_modules | ||
dist | ||
**/secrets.py | ||
**/settings_local.py | ||
|
||
# ignore local CMS media folder | ||
apps/tup-cms/src/media/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,5 @@ testem.log | |
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
.nx/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
# TACC/Core-CMS#v4.3.0 | ||
FROM taccwma/core-cms:7dabc2e | ||
FROM node:20 as node_build | ||
COPY package.json package-lock.json /code/ | ||
WORKDIR /code | ||
RUN npm ci | ||
|
||
COPY . /code/ | ||
RUN npx nx build tup-ui | ||
RUN npx nx build tup-cms-react | ||
|
||
# TACC/Core-CMS#v4.6.0 (Python 3.11) | ||
FROM taccwma/core-cms:8a56b9d | ||
|
||
WORKDIR /code | ||
|
||
COPY apps/tup-cms/src/apps /code/apps | ||
COPY apps/tup-cms/src/taccsite_custom /code/taccsite_custom | ||
COPY apps/tup-cms/src/taccsite_cms /code/taccsite_cms | ||
|
||
COPY dist/apps/tup-ui/imports.html /code/taccsite_cms/templates/imports.html | ||
COPY dist/apps/tup-ui/assets/ /code/taccsite_cms/static/assets/ | ||
COPY --from=node_build /code/dist/apps/tup-ui/imports.html /code/taccsite_cms/templates/imports.html | ||
COPY --from=node_build /code/dist/apps/tup-ui/assets/ /code/taccsite_cms/static/assets/ | ||
|
||
COPY --from=node_build /code/dist/apps/tup-cms-react/assets /code/taccsite_cms/static/cms-react/assets | ||
COPY --from=node_build /code/dist/apps/tup-cms-react/imports.html /code/taccsite_cms/templates/tup-cms-react.html | ||
|
||
COPY dist/apps/tup-cms-react/assets /code/taccsite_cms/static/cms-react/assets | ||
COPY /dist/apps/tup-cms-react/imports.html /code/taccsite_cms/templates/tup-cms-react.html | ||
RUN python manage.py collectstatic --no-input --clear --ignore assets/*/font*.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
apps/tup-cms/src/apps/staff_profile/templates/staff_profile/includes/display_name.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{% if instance.post_nomials %} | ||
{{instance.first_name}} {{instance.last_name}}, {{instance.post_nomials}} | ||
{% load post_nomials %} | ||
|
||
{% post_nomials_exclusion_list as post_nomials_exclusion_list %} | ||
|
||
{% if instance.post_nomials and instance.post_nomials not in post_nomials_exclusion_list %} | ||
{{ instance.first_name }} {{ instance.last_name }}, {{ instance.post_nomials }} | ||
{% else %} | ||
{{instance.first_name}} {{instance.last_name}} | ||
{{ instance.first_name }} {{ instance.last_name }} {{ instance.post_nomials }} | ||
{% endif %} |
Empty file.
13 changes: 13 additions & 0 deletions
13
apps/tup-cms/src/apps/staff_profile/templatetags/post_nomials.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from django import template | ||
from django.conf import settings | ||
|
||
POST_NOMIALS_EXCLUSION_LIST = settings.TACC_STAFF_PROFILE_POST_NOMIALS_EXCLUSION_LIST | ||
|
||
register = template.Library() | ||
|
||
@register.simple_tag | ||
def post_nomials_exclusion_list(): | ||
|
||
return POST_NOMIALS_EXCLUSION_LIST | ||
|
||
|
Oops, something went wrong.