@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>正在浏览一个已删除的页面</strong>
    </div>
    <div class="card-body">
        <p class="card-text">
            您正在浏览的页面于 @Model.DeletedDate 被 @Model.DeletedByUserName 删除<br />

            @Html.Raw(ZelWiki.Library.ConfirmActionHelper.GenerateWarnLink(GlobalConfiguration.BasePath, 
                "这将恢复已删除的页面及其所有修订历史,继续吗?",
                "恢复这个页面", "/Admin/RestoreDeletedPage/" + @Model.PageId, "/Admin/DeletedPages", Context.Request.Path.Value))
            <br />
        </p>
    </div>
</div>

@Html.Raw(Model.Body)
