Edit attributions.

This commit is contained in:
Michael 2017-04-06 15:48:25 -04:00
parent 1675a18905
commit 946fc67bb9

View file

@ -52,10 +52,14 @@
<div class="col-xs-8 panel">
<div class="panel-body">
@if(Model.Page != null)
@if (Model.Page != null)
{
<h1>@Model.Page.Name</h1>
var edit = Model.Page.EditHistory.First();
<p><strong>Last edited by @Html.UserLink(edit.UserId) on @edit.EditedAt</strong></p>
<p>@Html.Markdown(Model.Page.Contents)</p>
}
else