@using ZelWiki.Models
@model ZelWiki.Models.ViewModels.Page.DeletedPageRevisionViewModel
@{
    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/RestoreDeletedPageRevision/{Model.PageId}/{Model.Revision}", "/Admin/DeletedPageRevisions", Context.Request.Path.Value))
            <br />
        </p>
    </div>
</div>

@Html.Raw(Model.Body)
