The backend for the AiteStory website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.9 KiB

7 years ago
7 years ago
7 years ago
  1. {{ define "content" }}
  2. <article>
  3. <table class="page-list">
  4. {{ range .Headers }}
  5. <tbody>
  6. <tr class="">
  7. <td class="pl-icon">{{.CategoryInfo.Icon}}</td>
  8. <td class="pl-content">
  9. <div class="plc-title"><a href="/page/{{.ID}}">{{.Name}}</a></div>
  10. <div class="plc-meta">
  11. {{ if .Dated }}
  12. <div class="plcm-date">{{.FictionalDate | formatDate}}</div>
  13. {{ else }}
  14. <div class="plcm-date">{{.PublishDate | formatDate}}</div>
  15. {{ end }}
  16. {{ if .PrimaryTag }}
  17. <div class="plcm-tag {{.PrimaryTag.CSSCLass}}">{{.PrimaryTag.Name}}</div>
  18. {{ end }}
  19. <div class="plcm-author">{{.Author | formatUserID}}</div>
  20. </div>
  21. </td>
  22. </tr>
  23. <tr class="spacer"><td></td></tr>
  24. {{ end }}
  25. </table>
  26. </article>
  27. {{ end }}
  28. {{ define "menu" }}
  29. <a href="/"><h1>Aite RP</h1></a>
  30. <ul>
  31. {{ range .Categories }}
  32. <li class="{{ if eq .Key $.ActiveCategory.Key }}selected{{end}}"><a href="/{{.URLRoot}}/"><div class="mg-icon">{{.Icon}}</div><div class="mg-label">{{.Plural}}</div></a></li>
  33. {{ end }}
  34. </ul>
  35. {{ if $.ActiveTag.ID }}
  36. <ul>
  37. <li class="selected"><a href="/{{$.ActiveTag.Hook}}"><div class="mg-icon">{{$.ActiveTag.Icon}}</div><div class="mg-label">{{$.ActiveTag.Name}}</div></a></li>
  38. </ul>
  39. {{ end }}
  40. {{ if $.User.LoggedIn }}
  41. <ul>
  42. <li><a href="/page/create"><div class="mg-icon">+</div><div class="mg-label">Create</div></a></li>
  43. </ul>
  44. <ul>
  45. <li><a href="/user/logout"><div class="mg-icon">A</div><div class="mg-label">Logout</div></a></li>
  46. </ul>
  47. {{ else }}
  48. <ul>
  49. <li><a href="/user/login"><div class="mg-icon">A</div><div class="mg-label">Login</div></a></li>
  50. </ul>
  51. {{ end }}
  52. {{ end }}
  53. {{ define "head" }}
  54. {{ end }}