@using System.Linq @using PlexRequests.Core.Models @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.InProgressIssue) {
} @if (Model.IssueStatus == IssueStatus.ResolvedIssue) {
}
}

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


} @Html.LoadIssueDetailsAssets()