preview/app/views/showcase.scala.html
@(rundownPanelOutcomes: Either[Seq[String], common.TrailsToShowcase.RundownPanel], singleStoryPanelOutcomes: Seq[Either[Seq[String], common.TrailsToShowcase.SingleStoryPanel]], duplicateMap: Map[String, Int])
@for(problems <- rundownPanelOutcomes.left.toOption) { - @for(problem <- problems) { - @problem } } @for(panel <- rundownPanelOutcomes.toOption) { -
@showcase_articlegroup(panel.articleGroup) } @for(panelOutcome <- singleStoryPanelOutcomes) { @for(problems <- panelOutcome.left.toOption) { - @for(problem <- problems) { - @problem } } @for(panel <- panelOutcome.toOption) { - @for(panelTitle <- panel.panelTitle) {
} @for(dupe <- duplicateMap.find(d => panel.guid.endsWith(d._1))) {
} @for(overline <- panel.overline) {
@overline
} [
](@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) } } }