Back to Frontend

Showcase

preview/app/views/showcase.scala.html

latest1.2 KB
Original Source

@(rundownPanelOutcomes: Either[Seq[String], common.TrailsToShowcase.RundownPanel], singleStoryPanelOutcomes: Seq[Either[Seq[String], common.TrailsToShowcase.SingleStoryPanel]], duplicateMap: Map[String, Int])

Showcase

@for(problems <- rundownPanelOutcomes.left.toOption) { - @for(problem <- problems) { - @problem } } @for(panel <- rundownPanelOutcomes.toOption) { -

@panel.panelTitle

@showcase_articlegroup(panel.articleGroup) } @for(panelOutcome <- singleStoryPanelOutcomes) { @for(problems <- panelOutcome.left.toOption) { - @for(problem <- problems) { - @problem } } @for(panel <- panelOutcome.toOption) { - @for(panelTitle <- panel.panelTitle) {

@panel.panelTitle

} @for(dupe <- duplicateMap.find(d => panel.guid.endsWith(d._1))) {

@if(dupe._2 == 2) { used twice } else { used @dupe._2 times }

} @for(overline <- panel.overline) {

@overline

} [

@panel.title

](@panel.link) @for(author <- panel.author) {

@author

} @for(summary <- panel.summary) {

@summary

} @for(bulletList <- panel.bulletList) { @for(bullet <- bulletList.listItems) { - @bullet.text } } @for(relatedArticles <- panel.articleGroup) { @showcase_articlegroup(relatedArticles) } } }