add following
This commit is contained in:
parent
7bec5f61f0
commit
06ef3ce8e0
3 changed files with 20 additions and 14 deletions
|
@ -1,20 +1,27 @@
|
|||
<%- include('header.ejs') -%>
|
||||
<div class='area'>
|
||||
<form enctype='multipart/form-data' method='POST' action='/api/form/follow'>
|
||||
<h1>User</h1>
|
||||
<form class='user' enctype='multipart/form-data' method='POST' action='/api/form/follow'>
|
||||
<div class='form-message'></div>
|
||||
<div class='user'>
|
||||
<p>
|
||||
<b>@<%= id %></b>
|
||||
</p>
|
||||
<p>
|
||||
<%= following.length %> following
|
||||
</p>
|
||||
<p>
|
||||
<%= followers.length %> followers
|
||||
</p>
|
||||
<details>
|
||||
<summary> <%= following.length %> following</summary>
|
||||
<% for (let user of following) { %>
|
||||
<a href='/client/user?id=<%= user.target %>'><%= user.target %></a>
|
||||
<%} %>
|
||||
</details>
|
||||
<details>
|
||||
<summary> <%= followers.length %> followers</summary>
|
||||
<% for (let user of followers) { %>
|
||||
<a href='/client/user?id=<%= user.username %>'><%= user.username %></a>
|
||||
<%} %>
|
||||
</details>
|
||||
<input name='target' hidden value="<%= id %>">
|
||||
<input type='submit' value="Follow">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class='area'>
|
||||
<h1>Uploaded Videos</h1>
|
||||
<div class=' videos'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue