diff options
Diffstat (limited to 'client/src/app/videos')
6 files changed, 16 insertions, 16 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html index 0bab18d37..ee7bbec74 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html | |||
@@ -42,8 +42,8 @@ | |||
42 | </div> | 42 | </div> |
43 | 43 | ||
44 | <div class="row video-small-blocks"> | 44 | <div class="row video-small-blocks"> |
45 | <div class="col-xs-5 col-xs-3 col-md-3 video-small-block video-small-block-author"> | 45 | <div class="col-xs-5 col-xs-3 col-md-3 video-small-block video-small-block-account"> |
46 | <a class="option" title="Access to all videos of this user" [routerLink]="['/videos/list', { field: 'author', search: video.author }]"> | 46 | <a class="option" title="Access to all videos of this user" [routerLink]="['/videos/list', { field: 'account', search: video.account }]"> |
47 | <span class="glyphicon glyphicon-user"></span> | 47 | <span class="glyphicon glyphicon-user"></span> |
48 | <span class="video-small-block-text">{{ video.by }}</span> | 48 | <span class="video-small-block-text">{{ video.by }}</span> |
49 | </a> | 49 | </a> |
diff --git a/client/src/app/videos/+video-watch/video-watch.component.scss b/client/src/app/videos/+video-watch/video-watch.component.scss index 1a59a1bd3..fcad7f7b0 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.scss +++ b/client/src/app/videos/+video-watch/video-watch.component.scss | |||
@@ -104,7 +104,7 @@ | |||
104 | border-style: solid; | 104 | border-style: solid; |
105 | } | 105 | } |
106 | 106 | ||
107 | .video-small-block-author, .video-small-block-more { | 107 | .video-small-block-account, .video-small-block-more { |
108 | a.option { | 108 | a.option { |
109 | display: block; | 109 | display: block; |
110 | 110 | ||
@@ -234,7 +234,7 @@ | |||
234 | font-size: 18px !important; | 234 | font-size: 18px !important; |
235 | } | 235 | } |
236 | 236 | ||
237 | .video-small-block-author { | 237 | .video-small-block-account { |
238 | padding-left: 10px; | 238 | padding-left: 10px; |
239 | padding-right: 10px; | 239 | padding-right: 10px; |
240 | } | 240 | } |
@@ -267,7 +267,7 @@ | |||
267 | font-size: 10px !important; | 267 | font-size: 10px !important; |
268 | } | 268 | } |
269 | 269 | ||
270 | .video-small-block-author { | 270 | .video-small-block-account { |
271 | padding-left: 5px; | 271 | padding-left: 5px; |
272 | padding-right: 5px; | 272 | padding-right: 5px; |
273 | } | 273 | } |
diff --git a/client/src/app/videos/shared/video-details.model.ts b/client/src/app/videos/shared/video-details.model.ts index 84f96a25f..f4ae64dc1 100644 --- a/client/src/app/videos/shared/video-details.model.ts +++ b/client/src/app/videos/shared/video-details.model.ts | |||
@@ -10,7 +10,7 @@ import { | |||
10 | } from '../../../../../shared' | 10 | } from '../../../../../shared' |
11 | 11 | ||
12 | export class VideoDetails extends Video implements VideoDetailsServerModel { | 12 | export class VideoDetails extends Video implements VideoDetailsServerModel { |
13 | author: string | 13 | account: string |
14 | by: string | 14 | by: string |
15 | createdAt: Date | 15 | createdAt: Date |
16 | updatedAt: Date | 16 | updatedAt: Date |
@@ -71,7 +71,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel { | |||
71 | } | 71 | } |
72 | 72 | ||
73 | isRemovableBy (user: AuthUser) { | 73 | isRemovableBy (user: AuthUser) { |
74 | return user && this.isLocal === true && (this.author === user.username || user.hasRight(UserRight.REMOVE_ANY_VIDEO)) | 74 | return user && this.isLocal === true && (this.account === user.username || user.hasRight(UserRight.REMOVE_ANY_VIDEO)) |
75 | } | 75 | } |
76 | 76 | ||
77 | isBlackistableBy (user: AuthUser) { | 77 | isBlackistableBy (user: AuthUser) { |
@@ -79,6 +79,6 @@ export class VideoDetails extends Video implements VideoDetailsServerModel { | |||
79 | } | 79 | } |
80 | 80 | ||
81 | isUpdatableBy (user: AuthUser) { | 81 | isUpdatableBy (user: AuthUser) { |
82 | return user && this.isLocal === true && user.username === this.author | 82 | return user && this.isLocal === true && user.username === this.account |
83 | } | 83 | } |
84 | } | 84 | } |
diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index 7f2871032..2cad4a04e 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts | |||
@@ -2,7 +2,7 @@ import { Video as VideoServerModel } from '../../../../../shared' | |||
2 | import { User } from '../../shared' | 2 | import { User } from '../../shared' |
3 | 3 | ||
4 | export class Video implements VideoServerModel { | 4 | export class Video implements VideoServerModel { |
5 | author: string | 5 | account: string |
6 | by: string | 6 | by: string |
7 | createdAt: Date | 7 | createdAt: Date |
8 | updatedAt: Date | 8 | updatedAt: Date |
@@ -32,8 +32,8 @@ export class Video implements VideoServerModel { | |||
32 | dislikes: number | 32 | dislikes: number |
33 | nsfw: boolean | 33 | nsfw: boolean |
34 | 34 | ||
35 | private static createByString (author: string, podHost: string) { | 35 | private static createByString (account: string, podHost: string) { |
36 | return author + '@' + podHost | 36 | return account + '@' + podHost |
37 | } | 37 | } |
38 | 38 | ||
39 | private static createDurationString (duration: number) { | 39 | private static createDurationString (duration: number) { |
@@ -52,7 +52,7 @@ export class Video implements VideoServerModel { | |||
52 | absoluteAPIUrl = window.location.origin | 52 | absoluteAPIUrl = window.location.origin |
53 | } | 53 | } |
54 | 54 | ||
55 | this.author = hash.author | 55 | this.account = hash.account |
56 | this.createdAt = new Date(hash.createdAt.toString()) | 56 | this.createdAt = new Date(hash.createdAt.toString()) |
57 | this.categoryLabel = hash.categoryLabel | 57 | this.categoryLabel = hash.categoryLabel |
58 | this.category = hash.category | 58 | this.category = hash.category |
@@ -80,7 +80,7 @@ export class Video implements VideoServerModel { | |||
80 | this.dislikes = hash.dislikes | 80 | this.dislikes = hash.dislikes |
81 | this.nsfw = hash.nsfw | 81 | this.nsfw = hash.nsfw |
82 | 82 | ||
83 | this.by = Video.createByString(hash.author, hash.podHost) | 83 | this.by = Video.createByString(hash.account, hash.podHost) |
84 | } | 84 | } |
85 | 85 | ||
86 | isVideoNSFWForUser (user: User) { | 86 | isVideoNSFWForUser (user: User) { |
diff --git a/client/src/app/videos/video-list/shared/video-miniature.component.html b/client/src/app/videos/video-list/shared/video-miniature.component.html index abe87025f..6bbd29666 100644 --- a/client/src/app/videos/video-list/shared/video-miniature.component.html +++ b/client/src/app/videos/video-list/shared/video-miniature.component.html | |||
@@ -27,7 +27,7 @@ | |||
27 | </span> | 27 | </span> |
28 | </div> | 28 | </div> |
29 | 29 | ||
30 | <a [routerLink]="['/videos/list', { field: 'author', search: video.author, sort: currentSort }]" class="video-miniature-author">{{ video.by }}</a> | 30 | <a [routerLink]="['/videos/list', { field: 'account', search: video.account, sort: currentSort }]" class="video-miniature-account">{{ video.by }}</a> |
31 | <span class="video-miniature-created-at">{{ video.createdAt | date:'short' }}</span> | 31 | <span class="video-miniature-created-at">{{ video.createdAt | date:'short' }}</span> |
32 | </div> | 32 | </div> |
33 | </div> | 33 | </div> |
diff --git a/client/src/app/videos/video-list/shared/video-miniature.component.scss b/client/src/app/videos/video-list/shared/video-miniature.component.scss index e2602d3b6..507ace098 100644 --- a/client/src/app/videos/video-list/shared/video-miniature.component.scss +++ b/client/src/app/videos/video-list/shared/video-miniature.component.scss | |||
@@ -81,7 +81,7 @@ | |||
81 | } | 81 | } |
82 | } | 82 | } |
83 | 83 | ||
84 | .video-miniature-author, .video-miniature-created-at { | 84 | .video-miniature-account, .video-miniature-created-at { |
85 | display: block; | 85 | display: block; |
86 | margin-left: 1px; | 86 | margin-left: 1px; |
87 | font-size: 11px; | 87 | font-size: 11px; |
@@ -89,7 +89,7 @@ | |||
89 | opacity: 0.9; | 89 | opacity: 0.9; |
90 | } | 90 | } |
91 | 91 | ||
92 | .video-miniature-author { | 92 | .video-miniature-account { |
93 | transition: color 0.2s; | 93 | transition: color 0.2s; |
94 | 94 | ||
95 | &:hover { | 95 | &:hover { |