@using System.Linq @using PlexRequests.Core.Models @using PlexRequests.Helpers @using PlexRequests.UI.Helpers @{ var baseUrl = Html.GetBaseUrl(); var formAction = string.Empty; if (!string.IsNullOrEmpty(baseUrl.ToHtmlString())) { formAction = "/" + baseUrl.ToHtmlString(); } var isAdmin = false; if (Context.CurrentUser != null) { var claims = Context.CurrentUser.Claims.ToList(); if (claims.Contains("Admin") || claims.Contains("PowerUser")) { isAdmin = true; } } }

Details

Issues For "@Model.Title"

@if (isAdmin) {
@if (Model.IssueStatus == IssueStatus.PendingIssue) {
} @if (Model.IssueStatus == IssueStatus.ResolvedIssue) {
}
}

@foreach (var issue in Model.Issues) {
Type: @StringHelper.ToCamelCaseWords(issue.Issue.ToString())
User Reported: @issue.UserReported
User Note: @issue.UserNote
Admin Note:@issue.AdminNote
@if (isAdmin) {
}


} @Html.LoadIssueDetailsAssets()