diff --git a/app/main.py b/app/main.py index 2e776fc..38265b7 100644 --- a/app/main.py +++ b/app/main.py @@ -157,6 +157,12 @@ from .modules.dispatch.store import ( # noqa: E402 templates.env.filters["courier_logo"] = _courier_logo_url templates.env.filters["courier_track"] = _courier_tracking_url +# 프로젝트 관리 날짜 팝업(일=빨강·토=파랑·공휴일=빨강)용 대한민국 공휴일 표 — +# 프로젝트 화면들이 공용 사이드바(_side.html)에서 window.PJ_HOLIDAYS 로 넘긴다. +from .modules.project.store import KR_HOLIDAYS as _PJ_KR_HOLIDAYS # noqa: E402 + +templates.env.globals["pj_kr_holidays"] = _PJ_KR_HOLIDAYS + oauth = build_google_oauth() user_store = UserStore(DATA_DIR / "users.json") diff --git a/app/modules/project/templates/project/_side.html b/app/modules/project/templates/project/_side.html index 80b377c..31d80f0 100644 --- a/app/modules/project/templates/project/_side.html +++ b/app/modules/project/templates/project/_side.html @@ -11,6 +11,9 @@ is_admin 프로젝트 생성/수정/삭제 권한 목록 동작은 project.js 의 initSideTree(첫 화면을 같은 마크업으로 다시 그림), 새 프로젝트/수정 모달은 각 화면이 include 하는 project/_side_modals.html. #} +{# 날짜 팝업(openDatePopover)이 공휴일을 빨강으로 칠할 때 쓰는 표 — 이 사이드바는 + 프로젝트 관리의 모든 화면에 들어가므로 여기서 한 번 넘긴다(main.py 의 Jinja 전역). #} +