page.html 637 B

12345678910111213141516171819
  1. {{template "header.html" .}}
  2. <div class="card mb-4">
  3. <div class="card-body">
  4. {{if $.Data.IsUserLoggedIn}}
  5. {{if $.Data.CurrentUser.IsAdmin}}
  6. <a href="/cp/index/modify/{{$.Data.Page.Id}}/" target="_blank" style="float:right;">Edit</a>
  7. {{end}}
  8. {{end}}
  9. <h2 class="card-title">Page: {{$.Data.Page.Name}}</h2>
  10. <div class="page-content">
  11. {{$.Data.Page.Content}}
  12. </div>
  13. </div>
  14. <div class="card-footer text-muted">
  15. <div>Published on {{$.Data.Page.DateTimeFormat "02/01/2006, 15:04:05"}}</div>
  16. <div>Author: {{$.Data.Page.User.FirstName}} {{$.Data.Page.User.LastName}}</div>
  17. </div>
  18. </div>
  19. {{template "footer.html" .}}