feat(project): 타임라인 날짜 색을 캘린더와 같게(토 파랑, 일·국경일·대체공휴일 빨강)
- 프로젝트 화면 데이터에 공휴일 표(store.KR_HOLIDAYS) 추가 - 타임라인 minorLabels 에 보이지 않는 표시 글자(빨강 U+2063 / 파랑 U+2064)를 붙이고, 다시 그릴 때마다(changed) 표시를 보고 색 클래스를 단다 — vis 는 확대 단계에 따라 요일 class 를 안 붙이고 공휴일은 모르므로 직접 판단 - 도움말 13장에 날짜 색 안내, 정적 파일 버전 20260926s Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -803,6 +803,8 @@ def project_page(request: Request, project_id: int) -> HTMLResponse:
|
||||
"project_icons": list(store.PROJECT_ICONS),
|
||||
"stage_color_palette": list(store.STAGE_COLOR_PALETTE),
|
||||
"today": today.isoformat(),
|
||||
# 타임라인 날짜 색(일요일·국경일·대체공휴일 빨강) — 캘린더와 같은 공휴일 표
|
||||
"holidays": store.KR_HOLIDAYS,
|
||||
"year": year,
|
||||
"month": month,
|
||||
"prev_y": prev_y, "prev_m": prev_m,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926r" />
|
||||
<link rel="stylesheet" href="/static/project-help.css?v=20260926r" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926s" />
|
||||
<link rel="stylesheet" href="/static/project-help.css?v=20260926s" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -356,6 +356,7 @@
|
||||
<li>기간이 있는(시작일 또는 마감일이 있는) 작업이 가로 막대로 나옵니다. <b>이 프로젝트</b>는 섹션별 줄, <b>전체 프로젝트</b>는 프로젝트별 줄이며 프로젝트 전체 기간이 옅은 배경으로 깔립니다.</li>
|
||||
<li>막대 <b>몸통을 끌면</b> 기간 전체가 이동하고, <b>양 끝을 끌면</b> 시작일이나 마감일만 바뀝니다.</li>
|
||||
<li><kbd>Ctrl</kbd> + 마우스 휠로 확대·축소, 그냥 끌면 좌우로 이동합니다. <span class="pjh-ui">오늘</span>로 오늘 날짜로 돌아옵니다.</li>
|
||||
<li>아래 날짜 줄은 캘린더와 같은 색입니다 — <span style="color:#1d4ed8;font-weight:700">토요일은 파랑</span>, <span style="color:#c22b10;font-weight:700">일요일·국경일·대체공휴일은 빨강</span>.</li>
|
||||
<li>막대 <b>더블클릭</b> → 작업 편집 창, <b>우클릭</b> → 작업 메뉴. 마우스를 올리면 작업 정보가 보입니다.</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926r" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926s" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -101,5 +101,5 @@
|
||||
{% include "project/_side_modals.html" %}
|
||||
{% include "project/_member_tasks_modal.html" %}
|
||||
|
||||
<script src="/static/project.js?v=20260926r" defer></script>
|
||||
<script src="/static/project.js?v=20260926s" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926r" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926s" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -100,5 +100,5 @@
|
||||
"today": {{ today | tojson }}
|
||||
}
|
||||
</script>
|
||||
<script src="/static/project.js?v=20260926r" defer></script>
|
||||
<script src="/static/project.js?v=20260926s" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926r" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926s" />
|
||||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
<!-- 타임라인 vis-timeline — self-host -->
|
||||
@@ -467,10 +467,11 @@
|
||||
"stagesByProject": {{ stages_by_project | tojson }},
|
||||
"boardStages": {{ board_stage_names | tojson }},
|
||||
"avatars": {{ avatars | tojson }},
|
||||
"holidays": {{ (holidays or {}) | tojson }},
|
||||
"today": {{ today | tojson }}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
||||
<script src="/static/project.js?v=20260926r" defer></script>
|
||||
<script src="/static/project.js?v=20260926s" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926r" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260926s" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -70,5 +70,5 @@
|
||||
{% include "project/_side_modals.html" %}
|
||||
{% include "project/_member_tasks_modal.html" %}
|
||||
|
||||
<script src="/static/project.js?v=20260926r" defer></script>
|
||||
<script src="/static/project.js?v=20260926s" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user