aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-29 18:08:59 +0200
committerChocobozzz <me@florianbigard.com>2021-06-29 18:08:59 +0200
commit8d64a72b4cbd12b01ad4c689f210d219dd91fde3 (patch)
tree39b13f04ff468a9fb88bcd9cc239f3806a674dd7 /client/src/app/+videos
parent4b8463dee32f2b7c460aa3a8d74dfcf5de160acf (diff)
downloadPeerTube-8d64a72b4cbd12b01ad4c689f210d219dd91fde3.tar.gz
PeerTube-8d64a72b4cbd12b01ad4c689f210d219dd91fde3.tar.zst
PeerTube-8d64a72b4cbd12b01ad4c689f210d219dd91fde3.zip
Refactor a little bit watch html
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.html14
1 files changed, 8 insertions, 6 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 a84bafa2a..09be2d085 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.html
+++ b/client/src/app/+videos/+video-watch/video-watch.component.html
@@ -52,13 +52,17 @@
52 <div class="video-info"> 52 <div class="video-info">
53 <div class="video-info-first-row"> 53 <div class="video-info-first-row">
54 <div> 54 <div>
55 <ng-template #publishedTemplate>
56 <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container>
57
58 <my-video-views-counter [video]="video"></my-video-views-counter>
59 </ng-template>
60
55 <div class="d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below --> 61 <div class="d-block d-md-none"> <!-- only shown on medium devices, has its counterpart for larger viewports below -->
56 <h1 class="video-info-name">{{ video.name }}</h1> 62 <h1 class="video-info-name">{{ video.name }}</h1>
57 63
58 <div class="video-info-date-views"> 64 <div class="video-info-date-views">
59 <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container> 65 <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template>
60
61 <my-video-views-counter [video]="video"></my-video-views-counter>
62 </div> 66 </div>
63 </div> 67 </div>
64 68
@@ -69,9 +73,7 @@
69 73
70 <div class="video-info-first-row-bottom"> 74 <div class="video-info-first-row-bottom">
71 <div class="d-none d-md-block video-info-date-views"> 75 <div class="d-none d-md-block video-info-date-views">
72 <ng-container i18n>Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle></ng-container> 76 <ng-template *ngTemplateOutlet="publishedTemplate"></ng-template>
73
74 <my-video-views-counter [video]="video"></my-video-views-counter>
75 </div> 77 </div>
76 78
77 <my-action-buttons 79 <my-action-buttons