aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/admin/friends/friend-list/friend-list.component.html
blob: f138d65dd896053a93a1a5624da09c3bd99b1df6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<h3>Friends list</h3>

<table class="table table-hover">
  <thead>
    <tr>
      <th class="table-column-id">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>

<a *ngIf="friends?.length !== 0" class="add-user btn btn-danger pull-left" (click)="quitFriends()">
  Quit friends
</a>

<a *ngIf="friends?.length === 0" class="add-user btn btn-success pull-right" [routerLink]="['/admin/friends/add']">
  Make friends
</a>