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.4KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{template "base/head" .}}
  2. <div role="main" aria-label="{{.Title}}" 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">
  8. <div class="ui header">
  9. <a class="file-revisions-btn ui basic button" title="{{ctx.Locale.Tr "repo.wiki.back_to_wiki"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}"><span>{{.revision}}</span> {{svg "octicon-home"}}</a>
  10. {{$title}}
  11. <div class="ui sub header gt-word-break">
  12. {{$timeSince := TimeSince .Author.When ctx.Locale}}
  13. {{ctx.Locale.Tr "repo.wiki.last_commit_info" (.Author.Name | Escape) $timeSince | Safe}}
  14. </div>
  15. </div>
  16. </div>
  17. <div class="ui eight wide column text right">
  18. <div class="ui action small input" id="clone-panel">
  19. {{template "repo/clone_buttons" .}}
  20. {{template "repo/clone_script" .}}
  21. </div>
  22. </div>
  23. </div>
  24. <h2 class="ui top header">{{ctx.Locale.Tr "repo.wiki.wiki_page_revisions"}}</h2>
  25. <div class="gt-mt-4">
  26. <h4 class="ui top attached header">
  27. <div class="ui stackable grid">
  28. <div class="sixteen wide column">
  29. {{.CommitCount}} {{ctx.Locale.Tr "repo.commits.commits"}}
  30. </div>
  31. </div>
  32. </h4>
  33. {{if and .Commits (gt .CommitCount 0)}}
  34. {{template "repo/commits_list" .}}
  35. {{end}}
  36. {{template "base/paginate" .}}
  37. </div>
  38. </div>
  39. </div>
  40. {{template "base/footer" .}}