refactor(admin): 학습센터 관리에서 활성/비활성 제거, 네비에 관리자·관리자 off

- learning-admin: 관리자 모드 토글·인라인 토큰 폼 삭제, 안내 문구는 좌측 메뉴 관리자로 통일
- nav: 관리자 세션 시 로그오프 대신 관리자(모달)·관리자 off(/admin/logout→/learning)
- styles: 미사용 관리자 토글 스타일 정리
- README: 관리자 off 동작 반영

Made-with: Cursor
This commit is contained in:
2026-04-08 17:37:05 +09:00
parent 747caa9c99
commit 0e235db32d
4 changed files with 7 additions and 96 deletions

View File

@@ -37,23 +37,6 @@
<section class="panel admin-panel">
<div class="admin-mode-header">
<h2>관리자 모드</h2>
<div class="admin-mode-toggle">
<% if (adminMode) { %>
<span class="admin-status active">활성</span>
<a href="<%= adminBasePath %>?q=<%= filters.q %>&type=<%= filters.type %>&tag=<%= filters.tag %>&category=<%= filters.category || '' %>&page=<%= pagination.page %>" class="btn-admin-off">비활성화</a>
<% } else { %>
<span class="admin-status inactive">비활성</span>
<form action="<%= adminBasePath %>" method="get" class="admin-activate-inline">
<input type="hidden" name="q" value="<%= filters.q %>" />
<input type="hidden" name="type" value="<%= filters.type %>" />
<input type="hidden" name="tag" value="<%= filters.tag %>" />
<input type="hidden" name="category" value="<%= filters.category || '' %>" />
<input type="hidden" name="page" value="<%= pagination.page %>" />
<input type="password" name="token" placeholder="관리자 토큰" required autocomplete="off" />
<button type="submit">활성화</button>
</form>
<% } %>
</div>
</div>
<% if (retryQueued > 0) { %>
<p class="admin-ok">실패 건 재시도 <%= retryQueued %>건이 큐에 등록되었습니다.</p>
@@ -74,7 +57,7 @@
<% if (adminRequested) { %>
<p class="admin-error">입력한 토큰이 올바르지 않습니다. 다시 확인해주세요.</p>
<% } %>
<p class="admin-warn">삭제·썸네일 관리는 관리자 토큰을 입력한 뒤 <strong>활성화</strong>를 눌러주세요.</p>
<p class="admin-warn">삭제·썸네일 관리는 좌측 메뉴 하단 <strong>관리자</strong>에서 토큰을 입력해 주세요.</p>
<% } %>
</section>
<div
@@ -173,7 +156,7 @@
<span class="count-chip">총 <%= pagination.totalCount %>건</span>
</div>
<% if (!adminMode && lectures.length > 0) { %>
<p class="admin-warn" style="margin-bottom:12px">수정·삭제를 하려면 위에서 관리자 토큰을 입력하고 <strong>관리자 활성화</strong>를 눌러주세요.</p>
<p class="admin-warn" style="margin-bottom:12px">수정·삭제는 좌측 메뉴 하단 <strong>관리자</strong>에서 토큰을 입력한 뒤 이용할 수 있습니다.</p>
<% } %>
<form action="<%= adminBasePath %>" method="get" class="filter-grid" style="margin-bottom:12px">
<input type="hidden" name="token" value="<%= tokenRaw %>" />