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.

61 lines
1.9 KiB

7 years ago
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. <div class="plcm-date">{{.PublishDate | formatDate}}</div>
  12. {{ if .Dated }}
  13. <div class="plcm-date">{{.FictionalDate | formatDate}}</div>
  14. {{ end }}
  15. {{ if .PrimaryTag }}
  16. <div class="plcm-tag {{.PrimaryTag.CSSCLass}}">{{.PrimaryTag.Name}}</div>
  17. {{ end }}
  18. <div class="plcm-author">{{.Author | formatUserID}}</div>
  19. </div>
  20. </td>
  21. </tr>
  22. <tr class="spacer"><td></td></tr>
  23. {{ end }}
  24. </table>
  25. </article>
  26. {{ end }}
  27. {{ define "menu" }}
  28. <a href="/"><h1>Aite RP</h1></a>
  29. <ul>
  30. {{ range .Categories }}
  31. <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>
  32. {{ end }}
  33. </ul>
  34. {{ if $.ActiveTag.ID }}
  35. <ul>
  36. <li class="selected"><a href="/{{$.ActiveTag.Hook}}"><div class="mg-icon">{{$.ActiveTag.Icon}}</div><div class="mg-label">{{$.ActiveTag.Name}}</div></a></li>
  37. </ul>
  38. {{ end }}
  39. {{ if $.User.LoggedIn }}
  40. <ul>
  41. <li><a href="/page/create"><div class="mg-icon">+</div><div class="mg-label">Create</div></a></li>
  42. </ul>
  43. <ul>
  44. <li><a href="/user/logout"><div class="mg-icon">A</div><div class="mg-label">Logout</div></a></li>
  45. </ul>
  46. {{ else }}
  47. <ul>
  48. <li><a href="/user/login"><div class="mg-icon">A</div><div class="mg-label">Login</div></a></li>
  49. </ul>
  50. {{ end }}
  51. {{ end }}
  52. {{ define "head" }}
  53. {{ end }}