@using TightWiki.Models @model TightWiki.Models.ViewModels.Admin.PageModerateViewModel @{ Layout = "/Views/Shared/_Layout.cshtml"; var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); }

Page Moderate

Browse pages marked with various processing instructions to see what is in draft, pending deletion, protected, etc.

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
} @using (Html.BeginForm(null, null, FormMethod.Get, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}" })) {
@Html.DropDownListFor(m => m.Instruction, new SelectList(Model.Instructions), "Select an instruction", new { @class = "form-control", id = "instructionDropdown" })

@if (Model.Pages.Count > 0) { @foreach (var p in Model.Pages) { }
Name Revision Modified By Modified Date
@p.Name @p.Revision @p.ModifiedByUserName @p.ModifiedDate
@Html.Raw(TightWiki.Library.PageSelectorGenerator.Generate(Context.Request.QueryString, Model.PaginationPageCount)) } else {
There are no pages which contain the selected processing instruction.
} }