<% include ../partials/header %> <% let userid = videoData.user_id; let videoId = videoData.video_id; let videoTitle = videoData.video_name; let videoDesc = videoData.video_description; let videoSrc = "/public/media/"+userid+"/"+videoData.video_upload_path; let videoUploadedOn = videoData.video_uploadedon; let videoCount = videoData.video_views; let months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; let splitDate = videoUploadedOn.split(",")[0]; let getDateparams = splitDate.split("/"); let getDate = getDateparams[1]; let monthInName = months[getDateparams[0]]; let getFullYear = getDateparams[2]; let finalString = monthInName+" "+getDate+","+ getFullYear; %>
  • <%= videoTitle %>

    <%= videoCount %> Views

    Published on <%= finalString %>

    <%= videoDesc %>

<% if (v_message.length > 0) { %>
× <%= v_message %>
<% } else { } %> All Comments (<%= commentData.length %>)
/>
<% if(commentData && commentData.length > 0){ %> <% commentData.forEach(function(item){ %> <% console.log(item); %>
<%= item.name; %>

<%= item.comments; %>

<% }) %> <% } else { %>
No Comments
<% } %>