only show delete if this is actually your video
This commit is contained in:
parent
62645ddd93
commit
4a80ab8bca
1 changed files with 7 additions and 5 deletions
|
@ -28,8 +28,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pre class='form-input'><%= videoData.desc %></pre>
|
<pre class='form-input'><%= videoData.desc %></pre>
|
||||||
<input class='form-input' type='submit' value="Delete">
|
<%if (username==videoData.username) { %>
|
||||||
<input name='target' hidden value="<%= id %>">
|
<input class='form-input' type='submit' value="Delete">
|
||||||
</div>
|
<% } %>
|
||||||
<%- include('comments.ejs') -%>
|
<input name='target' hidden value="<%= id %>">
|
||||||
<%- include('footer.ejs') -%>
|
</div>
|
||||||
|
<%- include('comments.ejs') -%>
|
||||||
|
<%- include('footer.ejs') -%>
|
Loading…
Reference in a new issue