@model TightWiki.Models.ViewModels.Page.RevisionsViewModel @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
@Html.DisplayTextFor(x => h.Revision) @Html.DisplayTextFor(x => h.ModifiedByUserName) @Html.DisplayTextFor(x => h.ModifiedDate) @Html.DisplayTextFor(x => h.ChangeSummary)
@Html.Raw(TightWiki.Library.PageSelectorGenerator.Generate(Context.Request.QueryString, Model.PaginationPageCount)) } else {
The selected page does not have any revisions.
} }