@(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")) {
Recent report | Completed | Owner | Activation |
---|---|---|---|
@userIdLink(rep.suspectId.value.some, params = "?mod") | @momentFromNow(rep.date) | @rep.owner | @rep.activation% over @rep.games.size games |