]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.html
Add ability for plugins to add metadata
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / shared / metadata / video-attributes.component.html
index 52ad1999d175e9ba794ff82ea1daff21a24d703a..0aa7076663a5ffa712cc7304c681a3bcfd6653b8 100644 (file)
   <span i18n class="attribute-label">Duration</span>
   <span class="attribute-value">{{ video.duration | myDurationFormatter }}</span>
 </div>
+
+<div class="attribute attribute-plugin" *ngFor="let metadata of pluginMetadata">
+  <span class="attribute-label">{{ metadata.label }}</span>
+
+  <span *ngIf="metadata.value" class="attribute-value">{{ metadata.value }}</span>
+  <span *ngIf="metadata.safeHTML" class="attribute-value" [innerHTML]="metadata.safeHTML"></span>
+</div>