aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-08-26 18:59:17 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-08-26 18:59:17 +0200
commit888973612713ae89fcde204cd0ac1c3cfbeee871 (patch)
tree5a07741d30c847487106c2cc0b211158f3b59e6f /client
parent535724234aafd90c9eac17d9998f3f1c6c6c7615 (diff)
downloadPeerTube-888973612713ae89fcde204cd0ac1c3cfbeee871.tar.gz
PeerTube-888973612713ae89fcde204cd0ac1c3cfbeee871.tar.zst
PeerTube-888973612713ae89fcde204cd0ac1c3cfbeee871.zip
Client: add ID, score and created date to the friends list
Diffstat (limited to 'client')
-rw-r--r--client/src/app/admin/friends/friend-list/friend-list.component.html6
-rw-r--r--client/src/app/admin/friends/shared/friend.model.ts3
2 files changed, 9 insertions, 0 deletions
diff --git a/client/src/app/admin/friends/friend-list/friend-list.component.html b/client/src/app/admin/friends/friend-list/friend-list.component.html
index 1f3789265..7f1709d94 100644
--- a/client/src/app/admin/friends/friend-list/friend-list.component.html
+++ b/client/src/app/admin/friends/friend-list/friend-list.component.html
@@ -3,13 +3,19 @@
3<table class="table table-hover"> 3<table class="table table-hover">
4 <thead> 4 <thead>
5 <tr> 5 <tr>
6 <th>ID</th>
6 <th>Url</th> 7 <th>Url</th>
8 <th>Score</th>
9 <th>Created Date</th>
7 </tr> 10 </tr>
8 </thead> 11 </thead>
9 12
10 <tbody> 13 <tbody>
11 <tr *ngFor="let friend of friends"> 14 <tr *ngFor="let friend of friends">
15 <td>{{ friend.id }}</td>
12 <td>{{ friend.url }}</td> 16 <td>{{ friend.url }}</td>
17 <td>{{ friend.score }}</td>
18 <td>{{ friend.createdDate }}</td>
13 </tr> 19 </tr>
14 </tbody> 20 </tbody>
15</table> 21</table>
diff --git a/client/src/app/admin/friends/shared/friend.model.ts b/client/src/app/admin/friends/shared/friend.model.ts
index 847eb9c9c..7cb28f440 100644
--- a/client/src/app/admin/friends/shared/friend.model.ts
+++ b/client/src/app/admin/friends/shared/friend.model.ts
@@ -1,3 +1,6 @@
1export interface Friend { 1export interface Friend {
2 id: string;
2 url: string; 3 url: string;
4 score: number;
5 createdDate: Date;
3} 6}