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.

29 lines
858 B

  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. {{if and .IsRepositoryWriter (not .IsRepositoryMirror)}}
  8. <div class="ui right">
  9. <a class="ui green small button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a>
  10. </div>
  11. {{end}}
  12. </div>
  13. <table class="ui table">
  14. <tbody>
  15. {{range .Pages}}
  16. <tr>
  17. <td>
  18. <i class="octicon octicon-file-text"></i>
  19. <a href="{{$.RepoLink}}/wiki/{{.SubURL}}">{{.Name}}</a>
  20. </td>
  21. {{$timeSince := TimeSinceUnix .UpdatedUnix $.Lang}}
  22. <td class="text right grey">{{$.i18n.Tr "repo.wiki.last_updated" $timeSince | Safe}}</td>
  23. </tr>
  24. {{end}}
  25. </tbody>
  26. </table>
  27. </div>
  28. </div>
  29. {{template "base/footer" .}}