uploads test
This commit is contained in:
parent
29bc2b8ddd
commit
dabbc7d862
11 changed files with 121 additions and 44 deletions
|
@ -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
14
views/player.ejs
Normal 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') -%>
|
Loading…
Add table
Add a link
Reference in a new issue