uploads test

This commit is contained in:
biglyderv 2024-11-25 14:12:43 -05:00
parent 29bc2b8ddd
commit dabbc7d862
11 changed files with 121 additions and 44 deletions

View file

@ -4,8 +4,11 @@
<%if (username=='!nobody' ) { %>
<div class="button"><a href="/client/login">Login</a></div>
<% } else { %>
<a href="/client/user?user=<%= username %>">
<a href="/client/user?id=<%= username %>">
<%= username %>
</a>
<a href="/client/upload">
Upload
</a>
<% } %>
</div>

14
views/player.ejs Normal file
View file

@ -0,0 +1,14 @@
<%- include('header.ejs') -%>
<div class='area'>
<h1>Video</h1>
<video controls src='/videos/<%= videoData.id %>.mp4'></video>
<div><b>
<%= videoData.title %>
</b>
</div>
<div>by <a href="/client/user?id=<%= videoData.username %>">
<%= videoData.username %>
</a></div>
<!-- todo: custom video player-->
</div>
<%- include('footer.ejs') -%>