aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-25 14:32:19 +0200
committerChocobozzz <me@florianbigard.com>2018-04-25 14:32:19 +0200
commit03e12d7c4954e1071fdeb7ef362ea5c3965d4075 (patch)
treee77e8e6dbf1ee2fcc1644600af5cc404d685083c /client/src/app/shared
parent6b738c7a31591a83fdcd9c78b6b1f98e543c378b (diff)
downloadPeerTube-03e12d7c4954e1071fdeb7ef362ea5c3965d4075.tar.gz
PeerTube-03e12d7c4954e1071fdeb7ef362ea5c3965d4075.tar.zst
PeerTube-03e12d7c4954e1071fdeb7ef362ea5c3965d4075.zip
Add account link in videos list
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/video/video-miniature.component.html2
-rw-r--r--client/src/app/shared/video/video-miniature.component.scss6
-rw-r--r--client/src/app/shared/video/video.model.ts2
3 files changed, 9 insertions, 1 deletions
diff --git a/client/src/app/shared/video/video-miniature.component.html b/client/src/app/shared/video/video-miniature.component.html
index 233432142..d0b305509 100644
--- a/client/src/app/shared/video/video-miniature.component.html
+++ b/client/src/app/shared/video/video-miniature.component.html
@@ -12,6 +12,6 @@
12 </span> 12 </span>
13 13
14 <span class="video-miniature-created-at-views">{{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span> 14 <span class="video-miniature-created-at-views">{{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span>
15 <span class="video-miniature-account">{{ video.by }}</span> 15 <a class="video-miniature-account" [routerLink]="[ '/account', video.account.id ]">{{ video.by }}</a>
16 </div> 16 </div>
17</div> 17</div>
diff --git a/client/src/app/shared/video/video-miniature.component.scss b/client/src/app/shared/video/video-miniature.component.scss
index ece090828..588eea3a7 100644
--- a/client/src/app/shared/video/video-miniature.component.scss
+++ b/client/src/app/shared/video/video-miniature.component.scss
@@ -39,12 +39,18 @@
39 } 39 }
40 40
41 .video-miniature-account { 41 .video-miniature-account {
42 @include disable-default-a-behaviour;
43
42 display: block; 44 display: block;
43 overflow: hidden; 45 overflow: hidden;
44 text-overflow: ellipsis; 46 text-overflow: ellipsis;
45 white-space: nowrap; 47 white-space: nowrap;
46 font-size: 13px; 48 font-size: 13px;
47 color: #585858; 49 color: #585858;
50
51 &:hover {
52 color: #303030;
53 }
48 } 54 }
49 } 55 }
50} 56}
diff --git a/client/src/app/shared/video/video.model.ts b/client/src/app/shared/video/video.model.ts
index a284c1688..2e85f40ef 100644
--- a/client/src/app/shared/video/video.model.ts
+++ b/client/src/app/shared/video/video.model.ts
@@ -35,6 +35,8 @@ export class Video implements VideoServerModel {
35 nsfw: boolean 35 nsfw: boolean
36 36
37 account: { 37 account: {
38 id: number
39 uuid: string
38 name: string 40 name: string
39 displayName: string 41 displayName: string
40 url: string 42 url: string