diff --git a/rArchive.go b/rArchive.go index 783575b..c64c8df 100644 --- a/rArchive.go +++ b/rArchive.go @@ -25,13 +25,15 @@ func (this *WikiServer) routeArchive(w http.ResponseWriter, r *http.Request, rev pto.CurrentPageName = a.Title pto.CurrentPageIsArticle = true + infoMessageHtml := `You are viewing a specific revision of this page, last modified ` + + time.Unix(a.Modified, 0).In(this.loc).Format(this.opts.DateFormat) + `. ` + if !a.IsDeleted { + infoMessageHtml += `Click here to see the latest revision.` + } + bcr := this.GetBBCodeRenderer() pto.Content = template.HTML( - `
`+ - `You are viewing specific revision of this page, last modified `+ - time.Unix(a.Modified, 0).In(this.loc).Format(this.opts.DateFormat)+`. `+ - `Click here to see the latest revision.`+ - `
`, + `
`+infoMessageHtml+`
`, ) + bcr.RenderHTML(string(a.Body)) pto.LoadCodeResources = bcr.CodePresent