diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-12 11:29:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-12 11:44:28 +0100 |
commit | 19a3b914f19812a082e2f47d31c66fb1d9771736 (patch) | |
tree | 7e60fbec3b4fff27e018682bd36c0d5e67aed228 /client | |
parent | f2c3f7cd8a592ca1949e4f73717f17132a16c292 (diff) | |
download | PeerTube-19a3b914f19812a082e2f47d31c66fb1d9771736.tar.gz PeerTube-19a3b914f19812a082e2f47d31c66fb1d9771736.tar.zst PeerTube-19a3b914f19812a082e2f47d31c66fb1d9771736.zip |
Change video abuse API response
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html | 10 | ||||
-rw-r--r-- | client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts | 10 |
2 files changed, 13 insertions, 7 deletions
diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html index 88a1641cf..fcbdc6147 100644 --- a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html +++ b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html | |||
@@ -18,10 +18,16 @@ | |||
18 | <ng-template pTemplate="body" let-videoAbuse> | 18 | <ng-template pTemplate="body" let-videoAbuse> |
19 | <tr> | 19 | <tr> |
20 | <td>{{ videoAbuse.reason }}</td> | 20 | <td>{{ videoAbuse.reason }}</td> |
21 | <td>{{ videoAbuse.reporterUsername + '@' + videoAbuse.reporterServerHost }}</td> | 21 | <td> |
22 | <a [href]="videoAbuse.reporterAccount.url" title="Go to the account" target="_blank"> | ||
23 | {{ createByString(videoAbuse.reporterAccount) }} | ||
24 | </a> | ||
25 | </td> | ||
22 | <td>{{ videoAbuse.createdAt }}</td> | 26 | <td>{{ videoAbuse.createdAt }}</td> |
23 | <td> | 27 | <td> |
24 | <a [routerLink]="getRouterVideoLink(videoAbuse.videoUUID)" title="Go to the video">{{ videoAbuse.videoName }}</a> | 28 | <a [href]="videoAbuse.video.url" title="Go to the video" target="_blank"> |
29 | {{ videoAbuse.video.name }} | ||
30 | </a> | ||
25 | </td> | 31 | </td> |
26 | </tr> | 32 | </tr> |
27 | </ng-template> | 33 | </ng-template> |
diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts index bf9483f34..b650194b7 100644 --- a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts +++ b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts | |||
@@ -1,11 +1,11 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | 2 | import { Account } from '@app/shared/account/account.model' | |
3 | import { NotificationsService } from 'angular2-notifications' | 3 | import { NotificationsService } from 'angular2-notifications' |
4 | import { SortMeta } from 'primeng/components/common/sortmeta' | 4 | import { SortMeta } from 'primeng/components/common/sortmeta' |
5 | |||
6 | import { RestTable, RestPagination, VideoAbuseService } from '../../../shared' | ||
7 | import { VideoAbuse } from '../../../../../../shared' | 5 | import { VideoAbuse } from '../../../../../../shared' |
8 | 6 | ||
7 | import { RestPagination, RestTable, VideoAbuseService } from '../../../shared' | ||
8 | |||
9 | @Component({ | 9 | @Component({ |
10 | selector: 'my-video-abuse-list', | 10 | selector: 'my-video-abuse-list', |
11 | templateUrl: './video-abuse-list.component.html', | 11 | templateUrl: './video-abuse-list.component.html', |
@@ -29,8 +29,8 @@ export class VideoAbuseListComponent extends RestTable implements OnInit { | |||
29 | this.loadSort() | 29 | this.loadSort() |
30 | } | 30 | } |
31 | 31 | ||
32 | getRouterVideoLink (videoUUID: string) { | 32 | createByString (account: Account) { |
33 | return [ '/videos', videoUUID ] | 33 | return Account.CREATE_BY_STRING(account.name, account.host) |
34 | } | 34 | } |
35 | 35 | ||
36 | protected loadData () { | 36 | protected loadData () { |