From 1d26d05fd9e919b94a57b7c09cda101fde664d5f Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 7 May 2020 23:12:54 +0200 Subject: [PATCH] Align follower handle display on instance display in tables --- .../followers-list/followers-list.component.html | 9 +++++++-- .../followers-list/followers-list.component.scss | 14 ++++++++++++++ .../following-list/following-list.component.html | 2 +- .../video-redundancies-list.component.html | 4 ++-- .../users/user-edit/user-edit.component.html | 4 ++-- server/controllers/api/videos/abuse.ts | 2 +- 6 files changed, 27 insertions(+), 8 deletions(-) diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.html b/client/src/app/+admin/follows/followers-list/followers-list.component.html index b30edad9a..93378a533 100644 --- a/client/src/app/+admin/follows/followers-list/followers-list.component.html +++ b/client/src/app/+admin/follows/followers-list/followers-list.component.html @@ -1,6 +1,6 @@ @@ -29,7 +29,12 @@ - {{ follow.follower.name + '@' + follow.follower.host }} + + + {{ follow.follower.name + '@' + follow.follower.host }} + + + Accepted Pending diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.scss b/client/src/app/+admin/follows/followers-list/followers-list.component.scss index 964b3f99b..14189ff11 100644 --- a/client/src/app/+admin/follows/followers-list/followers-list.component.scss +++ b/client/src/app/+admin/follows/followers-list/followers-list.component.scss @@ -9,6 +9,20 @@ } } +a { + @include disable-default-a-behaviour; + display: inline-block; + + &, &:hover { + color: var(--mainForegroundColor); + } + + span { + font-size: 80%; + color: var(--inputPlaceholderColor); + } +} + .action-cell { my-button:first-child { margin-right: 10px; diff --git a/client/src/app/+admin/follows/following-list/following-list.component.html b/client/src/app/+admin/follows/following-list/following-list.component.html index ed987a768..059c07295 100644 --- a/client/src/app/+admin/follows/following-list/following-list.component.html +++ b/client/src/app/+admin/follows/following-list/following-list.component.html @@ -1,6 +1,6 @@ diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html index 592287ea0..152f6f29d 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html @@ -12,8 +12,8 @@ diff --git a/client/src/app/+admin/users/user-edit/user-edit.component.html b/client/src/app/+admin/users/user-edit/user-edit.component.html index df9f24749..d30a606d6 100644 --- a/client/src/app/+admin/users/user-edit/user-edit.component.html +++ b/client/src/app/+admin/users/user-edit/user-edit.component.html @@ -37,13 +37,13 @@
- +
{{ user.videoAbusesAcceptedCount }} / {{ user.videoAbusesCreatedCount }}
Authored reports accepted
diff --git a/server/controllers/api/videos/abuse.ts b/server/controllers/api/videos/abuse.ts index ec28fce67..2af7b3864 100644 --- a/server/controllers/api/videos/abuse.ts +++ b/server/controllers/api/videos/abuse.ts @@ -154,5 +154,5 @@ async function reportVideoAbuse (req: express.Request, res: express.Response) { logger.info('Abuse report for video %s created.', videoInstance.name) - return res.json({ videoAbuseJSON }).end() + return res.json({ videoAbuse: videoAbuseJSON }).end() }