Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

pages.tmpl 1.3KB

12345678910111213141516171819202122232425262728293031
  1. {{template "base/head" .}}
  2. <div role="main" aria-label="{{.Title}}" class="page-content repository wiki pages">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. <h2 class="ui header tw-flex tw-content-center tw-justify-between">
  6. <span>{{ctx.Locale.Tr "repo.wiki.pages"}}</span>
  7. <span>
  8. {{if and .CanWriteWiki (not .Repository.IsMirror)}}
  9. <a class="ui small primary button" href="{{.RepoLink}}/wiki?action=_new">{{ctx.Locale.Tr "repo.wiki.new_page_button"}}</a>
  10. {{end}}
  11. </span>
  12. </h2>
  13. {{if .IsRepositoryAdmin}}<div>{{ctx.Locale.Tr "repo.default_branch"}}: {{.Repository.DefaultWikiBranch}}</div>{{end}}
  14. <table class="ui table wiki-pages-list">
  15. <tbody>
  16. {{range .Pages}}
  17. <tr>
  18. <td>
  19. {{svg "octicon-file"}}
  20. <a href="{{$.RepoLink}}/wiki/{{.SubURL}}">{{.Name}}</a>
  21. <a class="wiki-git-entry" href="{{$.RepoLink}}/wiki/{{.GitEntryName | PathEscape}}" data-tooltip-content="{{ctx.Locale.Tr "repo.wiki.original_git_entry_tooltip"}}">{{svg "octicon-chevron-right"}}</a>
  22. </td>
  23. {{$timeSince := TimeSinceUnix .UpdatedUnix ctx.Locale}}
  24. <td class="text right">{{ctx.Locale.Tr "repo.wiki.last_updated" $timeSince}}</td>
  25. </tr>
  26. {{end}}
  27. </tbody>
  28. </table>
  29. </div>
  30. </div>
  31. {{template "base/footer" .}}