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.

revision.tmpl 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {{template "base/head" .}}
  2. <div class="page-content repository wiki revisions">
  3. {{template "repo/header" .}}
  4. {{ $title := .title}}
  5. <div class="ui container">
  6. <div class="ui stackable grid">
  7. <div class="ui eight wide column text right df ac je">
  8. <div class="ui action small input" id="clone-panel">
  9. {{template "repo/clone_buttons" .}}
  10. </div>
  11. </div>
  12. <div class="ui header eight wide column">
  13. <a class="file-revisions-btn ui basic button" title="{{.i18n.Tr "repo.wiki.back_to_wiki"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}" ><span>{{.revision}}</span> {{svg "octicon-home"}}</a>
  14. {{$title}}
  15. <div class="ui sub header word-break">
  16. {{$timeSince := TimeSince .Author.When $.i18n.Lang}}
  17. {{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}}
  18. </div>
  19. </div>
  20. </div>
  21. <h2 class="ui top header">{{.i18n.Tr "repo.wiki.wiki_page_revisions"}}</h2>
  22. <div class="ui" style="margin-top: 1rem;">
  23. <h4 class="ui top attached header">
  24. <div class="ui stackable grid">
  25. <div class="sixteen wide column">
  26. {{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}}
  27. </div>
  28. </div>
  29. </h4>
  30. {{if and .Commits (gt .CommitCount 0)}}
  31. {{template "repo/commits_list" .}}
  32. {{end}}
  33. {{template "base/paginate" .}}
  34. </div>
  35. </div>
  36. </div>
  37. {{template "base/footer" .}}