]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Client: add ID, score and created date to the friends list
authorChocobozzz <florian.bigard@gmail.com>
Fri, 26 Aug 2016 16:59:17 +0000 (18:59 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Fri, 26 Aug 2016 16:59:17 +0000 (18:59 +0200)
client/src/app/admin/friends/friend-list/friend-list.component.html
client/src/app/admin/friends/shared/friend.model.ts

index 1f3789265a68b6d8486d986b449811b589b83089..7f1709d94cc462879e59802228e38c25349a53cd 100644 (file)
@@ -3,13 +3,19 @@
 <table class="table table-hover">
   <thead>
     <tr>
+      <th>ID</th>
       <th>Url</th>
+      <th>Score</th>
+      <th>Created Date</th>
     </tr>
   </thead>
 
   <tbody>
     <tr *ngFor="let friend of friends">
+      <td>{{ friend.id }}</td>
       <td>{{ friend.url }}</td>
+      <td>{{ friend.score }}</td>
+      <td>{{ friend.createdDate }}</td>
     </tr>
   </tbody>
 </table>
index 847eb9c9c113dabb06b516151b0291ee57ae5fae..7cb28f44064be81db58c1a3edb323e1a4704cf68 100644 (file)
@@ -1,3 +1,6 @@
 export interface Friend {
+  id: string;
   url: string;
+  score: number;
+  createdDate: Date;
 }