index_html_file.go 690 B

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