2024-11-25 14:12:43 -05:00
|
|
|
<%- include('header.ejs') -%>
|
2024-11-25 14:12:44 -05:00
|
|
|
<form class='content' enctype='multipart/form-data' method='POST' action='/api/form/delete_video'>
|
2024-11-25 14:12:43 -05:00
|
|
|
<h1>Video</h1>
|
2024-11-25 14:12:43 -05:00
|
|
|
<div class='video-wrapper'>
|
2024-11-25 14:12:43 -05:00
|
|
|
<video src='/videos/<%= videoData.id %>.webm'></video>
|
2024-11-25 14:12:43 -05:00
|
|
|
<div class="progressbar">
|
2024-11-25 14:12:43 -05:00
|
|
|
<div></div>
|
|
|
|
</div>
|
2024-11-25 14:12:43 -05:00
|
|
|
<div class='controls'>
|
|
|
|
<div class='play'><img src='/static/img/play.svg' class='dark'></div>
|
2024-11-25 14:12:43 -05:00
|
|
|
<div class='full'><img src='/static/img/full.svg' class='dark'></div>
|
2024-11-25 14:12:43 -05:00
|
|
|
</div>
|
2024-11-25 14:12:43 -05:00
|
|
|
</div>
|
2024-11-25 14:12:44 -05:00
|
|
|
<p><b>
|
2024-11-25 14:12:43 -05:00
|
|
|
<%= videoData.title %>
|
|
|
|
</b>
|
2024-11-25 14:12:44 -05:00
|
|
|
</p>
|
2024-11-25 14:12:44 -05:00
|
|
|
|
2024-11-25 14:12:44 -05:00
|
|
|
<div class='avatar'>
|
|
|
|
<img src='/pfp/<%= videoData.username %>.png' class='avatar-img'>
|
2024-11-25 14:12:44 -05:00
|
|
|
<div>
|
2024-11-25 14:12:44 -05:00
|
|
|
Created by <b><a class='link' href="/client/user?id=<%= videoData.username %>">
|
2024-11-25 14:12:44 -05:00
|
|
|
@<%= videoData.username %></a></b>
|
|
|
|
</a> on
|
|
|
|
<b>
|
|
|
|
<%= (new Date(videoData.date)+'').split(/(GMT|UTC)/g)[0] %>
|
|
|
|
</b>
|
|
|
|
</div>
|
2024-11-25 14:12:43 -05:00
|
|
|
</div>
|
2024-11-25 14:12:44 -05:00
|
|
|
<pre class='form-input'><%= videoData.desc %></pre>
|
2024-11-25 14:12:44 -05:00
|
|
|
<%if (username==videoData.username) { %>
|
|
|
|
<input class='form-input' type='submit' value="Delete">
|
|
|
|
<% } %>
|
|
|
|
<input name='target' hidden value="<%= id %>">
|
|
|
|
</div>
|
|
|
|
<%- include('comments.ejs') -%>
|
|
|
|
<%- include('footer.ejs') -%>
|