Back to Frontend

Pageskins

admin/app/views/commercial/pageskins.scala.html

latest2.3 KB
Original Source

@(pageSkinnedAdUnits: common.dfp.PageSkinSponsorshipReport)(implicit request: RequestHeader, context: model.ApplicationContext) @import common.dfp._ @import tools.DfpLink @flaggableProperty(label: String, values: Seq[String], textWhenEmpty: String, flagErrors: Boolean) = { @if(values.isEmpty) { @if(flagErrors) {
@textWhenEmpty } else {
@textWhenEmpty } } else {
@label: @values.mkString(" ") } } @listItem(sponsorship: PageSkinSponsorship, flagErrors: Boolean = true) = {

  • @sponsorship.lineItemName (@sponsorship.lineItemId) @flaggableProperty("Editions", sponsorship.editions.map(_.id), "No edition", flagErrors) @flaggableProperty("Countries", sponsorship.countries, "No country", flagErrors)
    Ad Units: @if(sponsorship.adUnits.isEmpty) { - Run of network } @for(adUnit <- sponsorship.adUnits) { - @adUnit } @if(sponsorship.keywords.nonEmpty) { Keywords: @for(keyword <- sponsorship.keywords) { - @keyword } } @if(sponsorship.series.nonEmpty) { Series: @for(serie <- sponsorship.series) { - @serie } } } @admin_main("Pageskins", isAuthed = true) {

Pageskins

Pages will squish to accommodate pageskins according to either of these criteria:

Targeting a section front:

  • The Ad Unit must be a front, ending in "/front"
  • The Line Item must target an edition in its customised criteria
  • The Line Item must have a Roadblocking type of Creative Set
  • The Line Item Placeholder should target the Out of Page (1x1 pixel) slot.

Targeting a keyword or series front:

  • The line item must target the name (last part) of a keyword or series
  • The Line Item must target an edition in its customised criteria
  • The Line Item must have a Roadblocking type of Creative Set
  • The Line Item Placeholder should target the Out of Page (1x1 pixel) slot.

For a pageskin to appear, the viewport must be at least 1300px wide.

Pageskinned Ad Units

Last updated: @pageSkinnedAdUnits.updatedTimeStamp

Live Deliverable

@for(sponsorship <- pageSkinnedAdUnits.deliverableSponsorships) {@listItem(sponsorship)}

@if(pageSkinnedAdUnits.testSponsorships.isEmpty) {

None

} else { @for(sponsorship <- pageSkinnedAdUnits.testSponsorships) {@listItem(sponsorship, flagErrors = false)} } }