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

<div class="card border-warning mb-3">
    <div class="card-header bg-warning">
        <strong>Viewing a deleted page</strong>
    </div>
    <div class="card-body">
        <p class="card-text">
            You are viewing a page which was deleted on @Model.DeletedDate by @Model.DeletedByUserName.<br />

            @Html.Raw(ZelWiki.Library.ConfirmActionHelper.GenerateWarnLink(GlobalConfiguration.BasePath, 
                "This will restore the deleted page and all of its history. Continue?",
                "Restore This Page", "/Admin/RestoreDeletedPage/" + @Model.PageId, "/Admin/DeletedPages", Context.Request.Path.Value))
            <br />
        </p>
    </div>
</div>

@Html.Raw(Model.Body)
