admin/app/views/switchboard.scala.html
@import conf.switches.Switch @(lastModified: Long)(implicit flash: Flash, request: RequestHeader, context: model.ApplicationContext) @import controllers.admin.routes.UncachedAssets @defining(conf.switches.Switches.grouped){ switchGroups => @admin_main("Switchboard", isAuthed = true, container = Some("with-nav")) {
@if(flash.get("error").isDefined) {
@flash.get("error").get
} @if(flash.get("success").isDefined) {
You have successfully changed the following switches:
@for(switch <- flash.get("success").get.split("; ")){ - @switch } }
"Death by switches."
@switchGroups.map { case (group, switches) =>
@for(description <- group.description){
@description
} @switches.map { switch => @defining(Switch.expiry(switch)) { expiry => @switch.name - @switch.description @expiry.daysToExpiry.map{ days => @days days left} @if(switch.highImpact) { ⚠️ @switch.impactShortMessage } } } }
} }