Added play in background button

This commit is contained in:
2018-03-11 03:00:06 +01:00
parent 8ac693734e
commit 8071e18c65
4 changed files with 21 additions and 0 deletions

View File

@ -13,6 +13,12 @@ component Track(track *arn.SoundTrack, user *arn.User)
h3.widget-title= media.Service
.sound-track-media.video-container
iframe.lazy.video(data-src=media.EmbedLink(), allowfullscreen="allowfullscreen")
if user != nil && media.Service == "Youtube" && (user.Role == "admin" || user.Role == "editor") && track.File != ""
.buttons
button.action(data-action="playAudio", data-trigger="click", data-src="/audio/" + track.File)
Icon("play")
span Play in background
.widget.mountable
h3.widget-title Anime