only show delete if this is actually your video

This commit is contained in:
biglyderv 2024-10-25 12:53:32 -04:00
parent e031d31e95
commit d8101f9269

View file

@ -28,8 +28,10 @@
</div>
</div>
<pre class='form-input'><%= videoData.desc %></pre>
<input class='form-input' type='submit' value="Delete">
<input name='target' hidden value="<%= id %>">
</div>
<%- include('comments.ejs') -%>
<%- include('footer.ejs') -%>
<%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') -%>