Back to Frontend

@{page.video.title}

commercial/app/views/hosted/guardianAmpHostedVideo.scala.html

latest1.1 KB
Original Source

@import common.commercial.hosted.HostedVideoPage @import views.html.hosted._ @import conf.Configuration.environment @import conf.Configuration.site.host @import play.api.Mode @(page: HostedVideoPage)(implicit request: RequestHeader, context: model.ApplicationContext)

@* "utf-8" meta tag needs to be first according to AMP spec *@ @fragments.hostedContentsAMPMetaData(page, request, context) @views.support.Title(page) @fragments.amp.customStyles(page, mainPicture = "", page.cta.image, page.fontColour.hexCode) @* Required for outbrain served in an amp-iframe *@ @guardianHostedHeader(if(page.fontColour.isDark) "hosted-video-page hosted-page--bright" else "hosted-video-page", page, isAMP = true)

@page.video.youtubeId.map { youtubeId => }.getOrElse { Sorry, your browser is unable to play this video.
Please upgrade to a modern browser and try again. @for(source <- page.video.sources) { } }

@{page.video.title}

@Html(page.standfirst)

@hostedExplainer(onAmp = true)

@hostedOnwardAmp(s"${page.url}/video/onward.json") @guardianHostedCta(page, page.cta, isAMP = true)