pages.tmpl 776 B

12345678910111213141516171819202122232425262728
  1. {{template "base/head" .}}
  2. <div class="repository wiki pages">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. <div class="ui header">
  6. {{.i18n.Tr "repo.wiki.pages"}}
  7. <div class="ui right">
  8. <a class="ui green small button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a>
  9. </div>
  10. </div>
  11. <table class="ui table">
  12. <tbody>
  13. {{range .Pages}}
  14. <tr>
  15. <td>
  16. <i class="octicon octicon-file-text"></i>
  17. <a href="{{$.RepoLink}}/wiki/{{.URL}}">{{.Name}}</a>
  18. </td>
  19. {{$timeSince := TimeSince .Updated $.Lang}}
  20. <td class="text right grey">{{$.i18n.Tr "repo.wiki.last_updated" $timeSince | Safe}}</td>
  21. </tr>
  22. {{end}}
  23. </tbody>
  24. </table>
  25. </div>
  26. </div>
  27. {{template "base/footer" .}}