@Localizer["About"] @if (report.TargetAccountId is { Length: > 0 } targetId) { @report.TargetActorURI } else { @report.TargetActorURI }
@Localizer["From"] @(report.Reporter == "local" ? Localizer["someone here"] : report.Reporter)
@if (report.RuleIds.Count > 0) {
@Localizer["Rules it names"]
}
@if (report.Comment is { Length: > 0 } comment)
{
-
@foreach (var (ruleId, text) in RulesOf(report))
{
- @if (text is { Length: > 0 }) { @text } else { @Localizer["A rule no longer kept"] } }
@comment
} @if (report.PostIds.Count > 0 || report.ObjectURIs.Count > 0) {
@foreach (var postId in report.PostIds)
{
@Localizer["Post {0}", postId]
}
@* a report from another server names posts by their ids there when we hold none of them *@
@if (report.PostIds.Count == 0)
{
@foreach (var uri in report.ObjectURIs)
{
@uri
}
}
}