Back to Frontend

@{page.title}

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

latest734 B
Original Source

@import common.commercial.hosted.HostedGalleryImage @import views.support.ImgSrc @import views.html.hosted._ @import common.commercial.hosted.HostedGalleryPage @(picture: model.ImageMedia, image: HostedGalleryImage, index: Int, page: HostedGalleryPage) @picture.largestImage.map { largestImage => @if(index == 0) {

@{page.title}

@{page.standfirst}

} @if(index == page.images.length - 1) {

@{page.cta.label}@{page.cta.btnText} @fragments.inlineSvg("external-link", "icon")

} i @fragments.inlineSvg("cross", "icon", List("inline-cross inline-icon ")) @image.title

@Html(image.caption) @if(image.caption.nonEmpty && image.credit.nonEmpty){
} @image.credit @guardianHostedShareButtons(page)

}