@(reports: List[lila.report.Report.WithSuspect], filter: String, counts: lila.report.Room.Counts, streamers: Int)(implicit ctx: Context) @import lila.report.Report.WithSuspect @title = @{ "Reports" } @tab(reports: List[WithSuspect], room: lila.report.Room) = { @counts.get(room)@room.name } @mod.layout( title = title, active = "report", moreCss = cssTag("report.css")) {
@if(counts.sum > 0) {@counts.sum}All @lila.report.Room.all.map { r => @tab(reports, r) } @if(streamers > 0) { @streamersStreamers }
@reports.map { case WithSuspect(r, sus, _) if (!r.isTrollOrInsult || isGranted(_.MarkTroll)) => { } case _ => {} }
Report By
@reportScore(r.score) @r.reason.name.capitalize
@userLink(sus.user, params = "?mod")

@showBestPerfs(sus.user, 2)

@user.userMarks(sus.user, none)
@r.bestAtoms(3).map { atom =>
@reportScore(atom.score) @userIdLink(atom.by.value.some), @momentFromNow(r.recentAtom.at)

@shorten(atom.text, 200)

} @if(r.atoms.size > 3) { And @{r.atoms.size - 3} more }
@r.processedBy.map { u =>
}.getOrElse {
}
}