some ui fixes

This commit is contained in:
biglyderv 2024-11-25 14:12:44 -05:00
parent 04c11c5bde
commit 7568ade0e3
6 changed files with 63 additions and 50 deletions

View file

@ -1,6 +1,5 @@
<%- include('header.ejs') -%>
<form class='content' enctype='multipart/form-data' method='POST' action='/api/form/delete_video'>
<h1>Video</h1>
<form enctype='multipart/form-data' method='POST' action='/api/form/delete_video'>
<div class='video-wrapper'>
<video src='/videos/<%= videoData.id %>.webm'></video>
<div class="progressbar">
@ -11,27 +10,29 @@
<div class='full'><img src='/static/img/full.svg' class='dark'></div>
</div>
</div>
<p><b>
<div class='form-input'>
<b>
<%= videoData.title %>
</b>
</p>
<div class='avatar'>
<img src='/pfp/<%= videoData.username %>.png' class='avatar-img'>
<div>
Created by <b><a class='link' href="/client/user?id=<%= videoData.username %>">
@<%= videoData.username %></a></b>
</a> on
<b>
<%= (new Date(videoData.date)+'').split(/(GMT|UTC)/g)[0] %>
</b>
<p>
<%= (new Date(videoData.date)+'').split(/(GMT|UTC)/g)[0] %>
</p>
<div class='avatar'>
<img src='/pfp/<%= videoData.username %>.png' class='avatar-img'>
<div>
<b><a class='link' href="/client/user?id=<%= videoData.username %>">
@<%= videoData.username %></a></b>
</a>
</div>
</div>
</div>
<pre class='form-input'><%= videoData.desc %></pre>
<%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') -%>
</form>
<input name='target' hidden value="<%= id %>">
</div>
<%- include('comments.ejs') -%>
<%- include('footer.ejs') -%>