@model TightWiki.Models.ViewModels.Admin.PageRevisionsViewModel @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."); }

Page revisions for @sessionState.Page.Name.

All changes that have been made to the page.

@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}" })) { @if (Model.Revisions.Count > 0) { @foreach (var h in Model.Revisions) { }
Revision Modified By Modified Date Summary Action
@Html.DisplayTextFor(x => h.Revision) @Html.DisplayTextFor(x => h.ModifiedByUserName) @Html.DisplayTextFor(x => h.ModifiedDate) @Html.DisplayTextFor(x => h.ChangeSummary) @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateWarnLink(GlobalConfiguration.BasePath, $"Reverting {h.Name} from revision {h.HighestRevision} to {h.Revision} will rollback {h.HigherRevisionCount} changes.
" + "Reverting does not mean that changes will be lost however, the revert process will create a new revision with the reverted changes.

" + "Are you sure you want to continue?

", "Revert", $"/Admin/RevertPageRevision/{h.Navigation}/{h.Revision}", Context.Request.Path.Value)) @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateDangerLink(GlobalConfiguration.BasePath, $"Deleting revision {h.Revision} of \"{h.Name}\" will move the page revision to the deletion queue. This action can only be undone by an administrator or moderator. Continue?", "Delete", $"/Admin/DeletePageRevision/{h.Navigation}/{h.Revision}", Context.Request.Path.Value))
@Html.Raw(TightWiki.Library.PageSelectorGenerator.Generate(Context.Request.QueryString, Model.PaginationPageCount)) } else {
The selected page does not have any revisions.
} }