47 lines
No EOL
1,000 B
Text
47 lines
No EOL
1,000 B
Text
@using System.ComponentModel.DataAnnotations
|
|
<div>
|
|
@if (report.Type == "op")
|
|
{
|
|
<span> /@report.ReportedPost.Board/ </span>
|
|
}
|
|
else
|
|
{
|
|
<span> /@report.ReportedComment/ </span>
|
|
}
|
|
<span>#@report.ReportID</span>
|
|
<span>@report.Type</span>
|
|
<br/>
|
|
<span>Reason: @report.ReportReason</span>
|
|
<br/>
|
|
<span>Explaination: @report.ReportExlaination</span>
|
|
<br/>
|
|
<a @onclick="@banTarget" href="javascript:void(0)">Ban Reported User</a>
|
|
<br/>
|
|
<a @onclick="@banReporter" href="javascript:void(0)" >Ban Reporter</a>
|
|
<br/>
|
|
@if (report.Type == "op")
|
|
{
|
|
<Post post="report.ReportedPost" showOpenThread="true"></Post>
|
|
}
|
|
else
|
|
{
|
|
<Comment comment="report.ReportedComment"></Comment>
|
|
}
|
|
</div>
|
|
|
|
@code {
|
|
[Parameter]
|
|
[Required]
|
|
public ReportData report { get; set; }
|
|
|
|
|
|
private async Task banTarget()
|
|
{
|
|
|
|
}
|
|
|
|
private async Task banReporter()
|
|
{
|
|
|
|
}
|
|
} |