]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-watch/video-watch.component.html
Add emoji list to markdown infos
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / video-watch.component.html
index 0447268f0d3a0458a573be085f5855a706690cf5..4279437d23688e6716098b91af2b5f730e8fe14b 100644 (file)
                     </div>
                   </div>
 
-                  <my-video-actions-dropdown
-                    placement="bottom auto" buttonDirection="horizontal" [buttonStyled]="true" [video]="video" [videoCaptions]="videoCaptions"
-                    (videoRemoved)="onVideoRemoved()" (modalOpened)="onModalOpened()"
-                  ></my-video-actions-dropdown>
+                  <ng-container *ngIf="!isUserLoggedIn()">
+                    <button
+                      *ngIf="isVideoDownloadable()" class="action-button action-button-save"
+                      (click)="showDownloadModal()" (keydown.enter)="showDownloadModal()"
+                    >
+                      <my-global-icon iconName="download" aria-hidden="true"></my-global-icon>
+                      <span class="icon-text d-none d-sm-inline" i18n>DOWNLOAD</span>
+                    </button>
+
+                    <my-video-download #videoDownloadModal></my-video-download>
+                  </ng-container>
+
+                  <ng-container *ngIf="isUserLoggedIn()">
+                    <my-video-actions-dropdown
+                      placement="bottom auto" buttonDirection="horizontal" [buttonStyled]="true" [video]="video" [videoCaptions]="videoCaptions"
+                      (videoRemoved)="onVideoRemoved()" (modalOpened)="onModalOpened()"
+                    ></my-video-actions-dropdown>
+                  </ng-container>
                 </div>
 
                 <div class="video-info-likes-dislikes-bar-outer-container">
 
           <div class="pt-3 border-top video-info-channel d-flex">
             <div class="video-info-channel-left d-flex">
-              <avatar-channel [video]="video"></avatar-channel>
+              <avatar-channel [video]="video" [genericChannel]="isChannelDisplayNameGeneric()"></avatar-channel>
 
               <div class="video-info-channel-left-links ml-1">
-                <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Channel page">
-                  {{ video.channel.displayName }}
-                </a>
-                <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Account page">
-                  <span i18n>By {{ video.byAccount }}</span>
-                </a>
+                <ng-container *ngIf="!isChannelDisplayNameGeneric()">
+                  <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" i18n-title title="Channel page">
+                    {{ video.channel.displayName }}
+                  </a>
+                  <a [routerLink]="[ '/accounts', video.byAccount ]" i18n-title title="Account page">
+                    <span i18n>By {{ video.byAccount }}</span>
+                  </a>
+                </ng-container>
+
+                <ng-container *ngIf="isChannelDisplayNameGeneric()">
+                  <a [routerLink]="[ '/accounts', video.byAccount ]" class="single-link" i18n-title title="Account page">
+                    <span i18n>{{ video.byAccount }}</span>
+                  </a>
+                </ng-container>
               </div>
             </div>