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

Deleted Pages

Pages that have been deleted. Can be purged or restored.

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
} @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateDangerLink(GlobalConfiguration.BasePath, "This will permanently purge all deleted pages. Continue?", "Purge Deleted Pages", "/Admin/PurgeDeletedPages", Context.Request.Path.Value))

@using (Html.BeginForm(null, null, FormMethod.Get, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}" })) {
@Html.TextBoxFor(x => x.SearchString, new { @class = "form-control" })

@if (Model.Pages.Count > 0) { @foreach (var p in Model.Pages) { }
Page Action
@if (string.IsNullOrEmpty(@p.Namespace) == false) { @p.Namespace :: } @p.Title @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateSafeLink(GlobalConfiguration.BasePath, "This will restore the deleted page and all of its history. Continue?", "Restore", "/Admin/RestoreDeletedPage/" + @p.Id, Context.Request.Path.Value)) @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateDangerLink(GlobalConfiguration.BasePath, "This will permanently delete the specified page, all revisions and attachments. Continue?", "Purge", "/Admin/PurgeDeletedPage/" + @p.Id, Context.Request.Path.Value))
@Html.Raw(TightWiki.Library.PageSelectorGenerator.Generate(Context.Request.QueryString, Model.PaginationPageCount)) } else {
Either the deleted pages queue is empty or your search criteria returned no results.
} }