feat(project): Project 옵션 시스템 전체 적용 + 모달 안 말풍선 가림 수정
- 프로젝트 화면(처음 여는 탭)·보드(카드 표지)는 서버 저장(project_db.project_options, 마이그레이션 029) → 수퍼관리자·Admin 이 바꾸면 모든 사용자에게 적용. 일반(폰트)은 그대로 이 브라우저(localStorage). - GET/PUT /project/api/options(쓰기는 Admin 이상, 보낸 키만, 029 미적용 503). 검사·기본값은 store.normalize/validate_project_options 한 곳. 프로젝트 화면은 data-default-view·data-board-cover 로 받음 (읽기 실패해도 기본값으로 열림). - 옵션 창: 열 때 서버 최신값 읽기(실패 시 시스템 칸 잠금·폰트만 저장), 바뀐 키만 PUT, 실패면 창 유지. 분류 제목 옆 적용 범위 배지(이 브라우저에만 / 모든 사용자에게). - 공용 말풍선: 모달 대화창(showModal) 안에서는 popover(top layer)로 띄워 대화창 뒤에 가려지지 않게. - 테스트: tests/test_project_options_api.py, jsdom 옵션 테스트 갱신. 도움말·문서·DEPLOYMENT(029) 갱신. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
{% block head_extra %}
|
||||
{# 프로젝트 화면 부품(설명 편집기·날짜 팝업·멤버 고르기)을 그대로 쓴다 — project.js 는 PJ_LIB_ONLY 로 부품만 #}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016b" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
<script>window.PJ_LIB_ONLY = true; window.PJ_HOLIDAYS = {{ (pj_kr_holidays or {}) | tojson }};</script>
|
||||
{% endblock %}
|
||||
@@ -64,7 +64,7 @@
|
||||
</section>
|
||||
</div>
|
||||
<script>window.NTC_PEOPLE = {{ people | tojson }};</script>
|
||||
<script src="/static/project.js?v=20261016c" defer></script>
|
||||
<script src="/static/project.js?v=20261016d" defer></script>
|
||||
<script src="/static/erp-notice-admin.js?v=20261012b" defer></script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -1842,6 +1842,30 @@ class ProjectStore:
|
||||
return False
|
||||
return row is not None
|
||||
|
||||
# ── Project 옵션(시스템 전체, 마이그레이션 029) — 키 하나 = 행 하나, 값 검사는 store 한 곳 ──
|
||||
def get_project_options(self) -> dict[str, Any]:
|
||||
"""저장된 시스템 옵션 원본 {key: value}. 029 미적용이면 {}(화면은 기본값)."""
|
||||
try:
|
||||
with self._pool.connection() as conn:
|
||||
rows = conn.execute("SELECT key, value FROM project_options").fetchall()
|
||||
except psycopg_errors.UndefinedTable:
|
||||
return {}
|
||||
return {r["key"]: r["value"] for r in rows}
|
||||
|
||||
def set_project_options(self, *, values: dict[str, Any], updated_by: str) -> None:
|
||||
"""검사를 마친 값만 넣는다(store.validate_project_options). 한 트랜잭션 — 전부 아니면 전무.
|
||||
029 미적용이면 psycopg_errors.UndefinedTable(라우터가 503)."""
|
||||
by = store.norm_str(updated_by, lower=True)
|
||||
with self._pool.connection() as conn:
|
||||
with conn.transaction():
|
||||
for key, value in values.items():
|
||||
conn.execute(
|
||||
"INSERT INTO project_options (key, value, updated_by, updated_at) VALUES (%s, %s, %s, now()) "
|
||||
"ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value, updated_by = EXCLUDED.updated_by, "
|
||||
"updated_at = now()",
|
||||
(key, Jsonb(value), by),
|
||||
)
|
||||
|
||||
def notifier_revoke_token(self, *, token: str) -> None:
|
||||
with self._pool.connection() as conn:
|
||||
conn.execute("UPDATE notifier_tokens SET revoked_at = now() WHERE token_hash = %s AND revoked_at IS NULL",
|
||||
|
||||
@@ -899,6 +899,7 @@ def project_page(request: Request, project_id: int) -> HTMLResponse:
|
||||
{
|
||||
"user": user,
|
||||
**_role_ctx(user),
|
||||
"pj_options": _project_options(st),
|
||||
"can_manage": can_manage,
|
||||
"nav_items": build_erp_nav(user, active="project"),
|
||||
"page_title": project["name"],
|
||||
@@ -967,6 +968,43 @@ def _db_or_503(request: Request) -> Any:
|
||||
return st
|
||||
|
||||
|
||||
def _project_options(st: Any) -> dict[str, Any]:
|
||||
"""시스템 Project 옵션(처음 여는 탭·보드 카드 표지) — 읽기 실패해도 화면은 기본값으로 연다."""
|
||||
if st is None:
|
||||
return store.normalize_project_options(None)
|
||||
try:
|
||||
return store.normalize_project_options(st.get_project_options())
|
||||
except Exception: # noqa: BLE001 — 옵션 때문에 프로젝트 화면이 안 열리면 안 된다
|
||||
logger.warning("Project 옵션 읽기 실패 — 기본값 사용", exc_info=True)
|
||||
return store.normalize_project_options(None)
|
||||
|
||||
|
||||
@router.get("/api/options")
|
||||
def api_get_options(request: Request) -> JSONResponse:
|
||||
"""Project 옵션 창 — 시스템 전체 설정(모든 사용자에게 적용)과 내가 바꿀 수 있는지(Admin 이상)."""
|
||||
user = _require_user(request)
|
||||
st = _db_or_503(request)
|
||||
return JSONResponse({"options": _project_options(st), "can_edit": access.is_project_admin(user)})
|
||||
|
||||
|
||||
@router.put("/api/options")
|
||||
def api_put_options(request: Request, payload: dict[str, Any] = Body(...)) -> JSONResponse:
|
||||
"""시스템 Project 옵션 저장 — 수퍼관리자·Admin 만. 보낸 키만 바꾼다. 029 미적용이면 503."""
|
||||
user = _require_user(request)
|
||||
if not access.is_project_admin(user):
|
||||
raise HTTPException(status_code=403, detail="수퍼관리자·Admin 만 바꿀 수 있습니다.")
|
||||
st = _db_or_503(request)
|
||||
try:
|
||||
values = store.validate_project_options(payload)
|
||||
except ValueError as e:
|
||||
raise HTTPException(status_code=400, detail=str(e))
|
||||
try:
|
||||
st.set_project_options(values=values, updated_by=user.get("email", ""))
|
||||
except UndefinedTable:
|
||||
raise HTTPException(status_code=503, detail="DB 마이그레이션 029(Project 옵션)가 아직 적용되지 않았습니다.")
|
||||
return JSONResponse({"options": _project_options(st)})
|
||||
|
||||
|
||||
@router.get("/api/projects")
|
||||
def api_list_projects(request: Request) -> JSONResponse:
|
||||
user = _require_user(request)
|
||||
|
||||
@@ -375,6 +375,47 @@ def validate_time(t: Any) -> str | None:
|
||||
return f"{hh:02d}:{mm:02d}"
|
||||
|
||||
|
||||
# ════════════════════════════════════════════════════════════
|
||||
# Project 옵션 — 시스템 전체 설정(마이그레이션 029 project_options, 수퍼관리자·Admin 수정)
|
||||
# 폰트 같은 "일반" 옵션은 브라우저별(localStorage)이라 여기 없다.
|
||||
# ════════════════════════════════════════════════════════════
|
||||
PROJECT_VIEWS: tuple[str, ...] = ("board", "list", "calendar", "timeline", "dashboard")
|
||||
PROJECT_OPTION_DEFAULTS: dict[str, Any] = {
|
||||
"default_view": "board", # 왼쪽에서 프로젝트를 열 때 처음 보이는 탭
|
||||
"board_cover": True, # 보드 카드 표지(설명의 첫 이미지)
|
||||
}
|
||||
|
||||
|
||||
def normalize_project_options(raw: dict[str, Any] | None) -> dict[str, Any]:
|
||||
"""DB 에서 읽은 값 → 화면용. 모르는 키는 버리고, 이상한 값·없는 키는 기본값(읽기는 실패하지 않는다)."""
|
||||
out = dict(PROJECT_OPTION_DEFAULTS)
|
||||
raw = raw or {}
|
||||
if raw.get("default_view") in PROJECT_VIEWS:
|
||||
out["default_view"] = raw["default_view"]
|
||||
if isinstance(raw.get("board_cover"), bool):
|
||||
out["board_cover"] = raw["board_cover"]
|
||||
return out
|
||||
|
||||
|
||||
def validate_project_options(payload: Any) -> dict[str, Any]:
|
||||
"""저장 요청 검사 — 보낸 키만 돌려준다(일부만 바꿀 수 있게). 모르는 키·잘못된 값·빈 요청은 ValueError."""
|
||||
if not isinstance(payload, dict) or not payload:
|
||||
raise ValueError("바꿀 옵션이 없습니다.")
|
||||
unknown = set(payload) - set(PROJECT_OPTION_DEFAULTS)
|
||||
if unknown:
|
||||
raise ValueError("알 수 없는 옵션입니다: " + ", ".join(sorted(unknown)))
|
||||
out: dict[str, Any] = {}
|
||||
if "default_view" in payload:
|
||||
if payload["default_view"] not in PROJECT_VIEWS:
|
||||
raise ValueError("처음 여는 탭 값이 올바르지 않습니다.")
|
||||
out["default_view"] = payload["default_view"]
|
||||
if "board_cover" in payload:
|
||||
if not isinstance(payload["board_cover"], bool):
|
||||
raise ValueError("카드 표지 값이 올바르지 않습니다.")
|
||||
out["board_cover"] = payload["board_cover"]
|
||||
return out
|
||||
|
||||
|
||||
# ════════════════════════════════════════════════════════════
|
||||
# 연간 목표 (마이그레이션 013) — 사이드바 "목표" → 연도
|
||||
# ════════════════════════════════════════════════════════════
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{# Project 옵션 — 상단 바 톱니. 왼쪽 분류(일반·프로젝트 화면·보드·관리자) | 오른쪽 설정.
|
||||
일반(폰트)만 모두에게, 프로젝트 화면·보드는 수퍼관리자·Admin(pj_admin — 그 밖은 project.js 가 기본값으로 동작),
|
||||
관리자(긴급 공지)는 수퍼관리자만(공지 화면이 수퍼관리자 전용).
|
||||
설정은 모두 이 브라우저에 저장(localStorage) — 저장 버튼을 눌러야 한꺼번에 반영된다.
|
||||
키: pj_font(폰트) · pj_default_view(프로젝트 첫 탭) · pj_board_cover(보드 카드 표지 이미지, "0" = 끔).
|
||||
읽는 쪽: 폰트 = 아래 인라인 스크립트, 첫 탭·표지 = project.js(isPAdmin), 저장 시 "pj-options-change" 이벤트. #}
|
||||
{# Project 옵션 — 상단 바 톱니. 왼쪽 분류(일반·프로젝트 화면·보드·관리자) | 오른쪽 설정. 저장 버튼을 눌러야 한꺼번에 반영된다.
|
||||
· 일반(폰트) — 모두에게 보이고 이 브라우저에만 저장(localStorage pj_font, 아래 인라인 스크립트가 복원).
|
||||
· 프로젝트 화면(처음 여는 탭)·보드(카드 표지) — 수퍼관리자·Admin(pj_admin)만 보이고, 서버(project_options, 마이그레이션 029)에
|
||||
저장해 모든 사용자에게 적용. 창을 열 때 GET /project/api/options, 저장은 PUT. project.html 이 data-default-view·
|
||||
data-board-cover 로 받아 project.js 가 쓴다. 저장하면 "pj-options-change" 이벤트로 보던 보드에 바로 반영.
|
||||
· 관리자(긴급 공지) — 수퍼관리자만(공지 화면이 수퍼관리자 전용). #}
|
||||
<button type="button" class="pj-help-btn" id="pj-options-btn" aria-label="Project 옵션" title="Project 옵션">
|
||||
<span class="material-symbols-outlined">settings</span>
|
||||
</button>
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
<div class="pj-options-panes">
|
||||
<section class="pj-options-pane" role="tabpanel" id="pj-opt-pane-general" aria-labelledby="pj-opt-tab-general" data-pane="general">
|
||||
<h3>일반</h3>
|
||||
<h3>일반 <span class="pj-options-badge"><span class="material-symbols-outlined">computer</span>이 브라우저에만 적용</span></h3>
|
||||
<div class="pj-options-group">
|
||||
<div class="pj-options-row is-stack">
|
||||
<label for="pj-options-font"><b>폰트</b><small>Project 화면 전체의 글꼴</small></label>
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
{% if pj_admin %}
|
||||
<section class="pj-options-pane" role="tabpanel" id="pj-opt-pane-view" aria-labelledby="pj-opt-tab-view" data-pane="view" hidden>
|
||||
<h3>프로젝트 화면</h3>
|
||||
<h3>프로젝트 화면 <span class="pj-options-badge is-global"><span class="material-symbols-outlined">groups</span>모든 사용자에게 적용</span></h3>
|
||||
<div class="pj-options-group">
|
||||
<div class="pj-options-row is-stack">
|
||||
<span class="pj-options-label" id="pj-options-view-label"><b>처음 여는 탭</b><small>왼쪽에서 프로젝트를 고르면 바로 보이는 보기</small></span>
|
||||
@@ -68,7 +68,7 @@
|
||||
</section>
|
||||
|
||||
<section class="pj-options-pane" role="tabpanel" id="pj-opt-pane-board" aria-labelledby="pj-opt-tab-board" data-pane="board" hidden>
|
||||
<h3>보드</h3>
|
||||
<h3>보드 <span class="pj-options-badge is-global"><span class="material-symbols-outlined">groups</span>모든 사용자에게 적용</span></h3>
|
||||
<div class="pj-options-group">
|
||||
<label class="pj-options-row" for="pj-options-cover">
|
||||
<span class="pj-options-label"><b>카드 표지 이미지</b><small>메인 업무 설명의 첫 이미지를 보드 카드 위에 보여 줍니다</small></span>
|
||||
@@ -93,7 +93,6 @@
|
||||
<footer class="pj-options-foot">
|
||||
<button type="button" class="pj-btn pj-options-reset" id="pj-options-reset" title="모든 옵션을 처음 값으로(저장해야 반영)">기본값으로</button>
|
||||
<p class="pj-options-error" id="pj-options-error" role="alert" hidden></p>
|
||||
<span class="pj-options-scope">이 브라우저에만 저장됩니다</span>
|
||||
<button type="button" class="pj-btn" id="pj-options-cancel">취소</button>
|
||||
<button type="submit" class="pj-btn pj-btn-primary" id="pj-options-save">저장</button>
|
||||
</footer>
|
||||
@@ -106,4 +105,4 @@
|
||||
document.documentElement.dataset.pjFont = pf;
|
||||
} catch (_) {}
|
||||
</script>
|
||||
<script src="/static/project-options.js?v=20261016b" defer></script>
|
||||
<script src="/static/project-options.js?v=20261016c" defer></script>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "project/_meeting_content_base.html" if meeting_embedded else "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016b" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -298,5 +298,5 @@
|
||||
|
||||
<script src="/static/project-goal-text.js?v=20261003d" defer></script>
|
||||
<script src="/static/project-meeting-cells.js?v=20261012a" defer></script>
|
||||
<script src="/static/project.js?v=20261016c" defer></script>
|
||||
<script src="/static/project.js?v=20261016d" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016b" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -207,5 +207,5 @@
|
||||
{% include "project/_member_tasks_modal.html" %}
|
||||
|
||||
<script src="/static/project-goal-text.js?v=20261003d" defer></script>
|
||||
<script src="/static/project.js?v=20261016c" defer></script>
|
||||
<script src="/static/project.js?v=20261016d" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016b" />
|
||||
<link rel="stylesheet" href="/static/project-help.css?v=20261003a" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
@@ -117,11 +117,12 @@
|
||||
<li><span class="pjh-ui"><span class="material-symbols-outlined">fit_screen</span></span> 화면 배율 — 누르면(파랗게 켜짐) 화면 전체를 75%로 줄입니다. 2880×1620 모니터를 Windows 배율 200%로 쓰면 화면이 꽉 차 보이는데, 이때 켜면 1920×1080 모니터와 같은 모습이 됩니다. 브라우저마다 기억합니다. 메뉴·말풍선 같은 작은 팝업은 원래 크기로 뜹니다.</li>
|
||||
<li><span class="pjh-ui"><span class="material-symbols-outlined">help</span></span> 물음표 — 지금 보고 있는 이 도움말을 새 탭으로 엽니다.</li>
|
||||
<li><span class="pjh-ui"><span class="material-symbols-outlined">settings</span></span> 도움말 오른쪽의 옵션 — 왼쪽 분류를 골라 설정을 바꾸고 <span class="pjh-ui">저장</span>을 누르면 한꺼번에 적용되고 창이 닫힙니다.
|
||||
<b>일반</b>: 폰트(기본 시스템 폰트·프리텐다드·나눔 스퀘어·나눔 스퀘어 네오·나눔 스퀘어 라운드, 미리보기).
|
||||
아래 프로젝트 화면·보드 분류는 수퍼관리자·Admin 에게만, 관리자(긴급 공지) 분류는 수퍼관리자에게만 보입니다(다른 사용자는 보드로 열리고 카드 표지가 보이는 기본 그대로).
|
||||
<b>일반</b>: 폰트(기본 시스템 폰트·프리텐다드·나눔 스퀘어·나눔 스퀘어 네오·나눔 스퀘어 라운드, 미리보기) — 누구나 바꿀 수 있고 이 브라우저에만 적용됩니다.
|
||||
아래 프로젝트 화면·보드 분류는 수퍼관리자·Admin 에게만 보이고, 바꾸면 <b>모든 사용자</b>에게 적용됩니다(다른 사람은 다음에 화면을 열 때부터). 관리자(긴급 공지) 분류는 수퍼관리자에게만 보입니다.
|
||||
분류 제목 옆 표시(이 브라우저에만 / 모든 사용자에게)로 적용 범위를 알 수 있습니다.
|
||||
<b>프로젝트 화면</b>: 처음 여는 탭 — 왼쪽에서 프로젝트를 고르면 바로 보일 보기(보드·목록·캘린더·타임라인·대시보드). 왼쪽 "전체 보기"는 늘 대시보드로 열립니다.
|
||||
<b>보드</b>: 카드 표지 이미지 — 끄면 메인 업무 설명에 이미지가 있어도 보드 카드에 표지를 보여 주지 않습니다(보던 보드에 바로 반영).
|
||||
<span class="pjh-ui">기본값으로</span>는 창 안의 값만 처음으로 돌립니다(저장해야 반영). 설정은 이 브라우저에 기억합니다. <span class="pjh-ui">취소</span>는 변경을 적용하지 않고 닫습니다.</li>
|
||||
<span class="pjh-ui">기본값으로</span>는 창 안의 값만 처음으로 돌립니다(저장해야 반영). <span class="pjh-ui">취소</span>는 변경을 적용하지 않고 닫습니다.</li>
|
||||
</ul>
|
||||
<h3>프로젝트 제목</h3>
|
||||
<p>가운데 위 프로젝트 제목에 마우스를 올리면 테두리가 생깁니다. 누르면 그 자리에서 이름을 고칩니다 — <kbd>Enter</kbd>나 바깥을 누르면 저장, <kbd>Esc</kbd>는 취소. (그 프로젝트 멤버인 Pro user 이상만)</p>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016b" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -106,5 +106,5 @@
|
||||
{% include "project/_side_modals.html" %}
|
||||
{% include "project/_member_tasks_modal.html" %}
|
||||
|
||||
<script src="/static/project.js?v=20261016c" defer></script>
|
||||
<script src="/static/project.js?v=20261016d" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016b" />
|
||||
<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=20261016c" defer></script>
|
||||
<script src="/static/project.js?v=20261016d" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016b" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -108,5 +108,5 @@
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<script src="/static/project.js?v=20261016c" defer></script>
|
||||
<script src="/static/project.js?v=20261016d" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016b" />
|
||||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
<!-- 타임라인 vis-timeline — self-host -->
|
||||
@@ -29,6 +29,8 @@
|
||||
data-can-manage="{{ 'true' if can_manage else 'false' }}"
|
||||
data-is-pro="{{ 'true' if pj_pro else 'false' }}" data-is-padmin="{{ 'true' if pj_admin else 'false' }}"
|
||||
data-is-super="{{ 'true' if user.is_super_admin else 'false' }}"
|
||||
data-default-view="{{ pj_options.default_view if pj_options else 'board' }}"
|
||||
data-board-cover="{{ '0' if pj_options and not pj_options.board_cover else '1' }}"
|
||||
data-me="{{ user.email }}">
|
||||
|
||||
<div class="pj-layout">
|
||||
@@ -470,5 +472,5 @@
|
||||
</script>
|
||||
|
||||
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
||||
<script src="/static/project.js?v=20261016c" defer></script>
|
||||
<script src="/static/project.js?v=20261016d" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261016b" />
|
||||
<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=20261016c" defer></script>
|
||||
<script src="/static/project.js?v=20261016d" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user