<%- include('../partials/navbar', { userId }) %> <% var folderPathEnc = breadcrumb.map(function (s) { return encodeURIComponent(s) }).join('/') var parentHref = isSubFolder ? '/op/folder/' + encodeURIComponent(breadcrumb[0]) : '/op/dashboard' var parentLabel = isSubFolder ? '← ' + breadcrumb[0] : '← 폴더 목록' var editorHref = '/op/folder/' + folderPathEnc + '/video/editor' var playlistHref = '/op/folder/' + folderPathEnc + '/playlist/new' var listTxtHref = '/op/folder/' + folderPathEnc + '/list.txt' %>
<%= parentLabel %>

📁 <%= breadcrumb.join(' / ') %>

<% if (!isSubFolder) { %> <% } %> 영상 추가 <% if (isSubFolder) { %> 플레이리스트 추가 목록 뽑기 <% } %>
<% if (!isSubFolder) { %>
<% if (!subFolders || subFolders.length === 0) { %>

아직 하위 폴더가 없습니다. 우측 상단에서 하위 폴더를 추가하세요. (영상도 이 폴더에 바로 추가할 수 있습니다.)

<% } %> <% (subFolders || []).forEach(function (sf) { %> <% }) %>
<% } %>
<% if (videos.length === 0) { %>

이 폴더에 영상이 없습니다. 우측 상단에서 영상을 추가하세요.

<% } %> <% videos.forEach(function (v) { var shareUrl = '/video/' + folderPathEnc + '/' + encodeURIComponent(v.id) %>
<%= v.title %>
<% if (v.sourceType === 'youtube') { %>
YouTube
<% } %>
<% }) %>
<% if (!isSubFolder) { %> <% } %>