diff options
Diffstat (limited to 'client/src/app/videos/+video-edit/shared/video-edit.component.html')
-rw-r--r-- | client/src/app/videos/+video-edit/shared/video-edit.component.html | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.html b/client/src/app/videos/+video-edit/shared/video-edit.component.html index 16dbf5cfc..2c40747ba 100644 --- a/client/src/app/videos/+video-edit/shared/video-edit.component.html +++ b/client/src/app/videos/+video-edit/shared/video-edit.component.html | |||
@@ -142,10 +142,33 @@ | |||
142 | 142 | ||
143 | <div class="form-group" *ngFor="let videoCaption of videoCaptions"> | 143 | <div class="form-group" *ngFor="let videoCaption of videoCaptions"> |
144 | 144 | ||
145 | <div *ngIf="videoCaption.action !== 'REMOVE'" class="caption-entry"> | 145 | <div class="caption-entry"> |
146 | <div class="caption-entry-label">{{ videoCaption.language.label }}</div> | 146 | <ng-container *ngIf="!videoCaption.action"> |
147 | <a | ||
148 | i18n-title title="See the subtitle file" class="caption-entry-label" target="_blank" rel="noopener noreferrer" | ||
149 | [href]="videoCaption.captionPath" | ||
150 | >{{ videoCaption.language.label }}</a> | ||
147 | 151 | ||
148 | <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Delete</span> | 152 | <div class="caption-entry-state">Already uploaded ✔</div> |
153 | |||
154 | <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Delete</span> | ||
155 | </ng-container> | ||
156 | |||
157 | <ng-container *ngIf="videoCaption.action === 'CREATE'"> | ||
158 | <span class="caption-entry-label">{{ videoCaption.language.label }}</span> | ||
159 | |||
160 | <div class="caption-entry-state caption-entry-state-create">Will be created on update</div> | ||
161 | |||
162 | <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Cancel create</span> | ||
163 | </ng-container> | ||
164 | |||
165 | <ng-container *ngIf="videoCaption.action === 'REMOVE'"> | ||
166 | <span class="caption-entry-label">{{ videoCaption.language.label }}</span> | ||
167 | |||
168 | <div class="caption-entry-state caption-entry-state-delete">Will be deleted on update</div> | ||
169 | |||
170 | <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Cancel deletion</span> | ||
171 | </ng-container> | ||
149 | </div> | 172 | </div> |
150 | </div> | 173 | </div> |
151 | 174 | ||