Back to Frontend

ContentGallery.Scala

admin/app/views/contentGallery.scala.html

latest887 B
Original Source

@( pageViewsChart: tools.FormattedChart, lightboxLaunchesChart: tools.FormattedChart, sentryChart: tools.FormattedChart, shareChart: tools.FormattedChart, title: String, reportTimestamp: Option[String])(implicit request: RequestHeader, context: model.ApplicationContext) @admin_main("Gallery Dashboard", isAuthed = true, hasCharts = true) {

@title


@topLine(pageViewsChart)

@topLine(lightboxLaunchesChart)

@topLine(shareChart)

@topLine(sentryChart)


@trendedChart(pageViewsChart) @trendedChart(lightboxLaunchesChart) @trendedChart(shareChart) @trendedChart(sentryChart) @reportTimestamp.map { timestamp => Omniture reports generated at @timestamp } } @topLine(chart: tools.FormattedChart) = { @chart.lastValue.map { value => @value

@chart.columns(1).label } } @trendedChart(chart: tools.FormattedChart) = {

@fragments.formattedChart(chart)

}