@(dashboard: lila.irwin.IrwinDashboard)(implicit ctx: Context) @percentClass(percent: Int) = { @percent match { case p if p < 30 => {green} case p if p < 60 => {yellow} case p if p < 80 => {orange} case _ => {red} } } @mod.layout( title = "Irwin dashboard", active = "irwin", moreCss = cssTag("mod-irwin.css")) {

Irwin status: @if(dashboard.seenRecently) { Operational } else { @dashboard.lastSeenAt.map { seenAt => Last seen @momentFromNow(seenAt) }.getOrElse { Unknown } }

Monitoring
@dashboard.recent.map { rep => }
Recent report Completed Owner Activation
@userIdLink(rep.suspectId.value.some, params = "?mod") @momentFromNow(rep.date) @rep.owner @rep.activation% over @rep.games.size games
}