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 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {{template "base/head" .}}
  2. <div class="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">
  8. <div class="ui action small input" id="clone-panel">
  9. {{if not $.DisableHTTP}}
  10. <button class="ui basic clone button" id="repo-clone-https" data-link="{{.WikiCloneLink.HTTPS}}">
  11. {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}}
  12. </button>
  13. {{end}}
  14. {{if and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}}
  15. <button class="ui basic clone button" id="repo-clone-ssh" data-link="{{.WikiCloneLink.SSH}}">
  16. SSH
  17. </button>
  18. {{end}}
  19. {{if not $.DisableHTTP}}
  20. <input id="repo-clone-url" value="{{$.WikiCloneLink.HTTPS}}" readonly>
  21. {{else if and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)}}
  22. <input id="repo-clone-url" value="{{$.WikiCloneLink.SSH}}" readonly>
  23. {{end}}
  24. {{if or ((not $.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH)))}}
  25. <button class="ui basic icon button poping up clipboard" id="clipboard-btn" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url">
  26. {{svg "octicon-clippy" 16}}
  27. </button>
  28. {{end}}
  29. </div>
  30. </div>
  31. <div class="ui header eight wide column">
  32. <a class="file-revisions-btn ui basic button" title="{{.i18n.Tr "repo.wiki.back_to_wiki"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}" ><span>{{.revision}}</span> <i class="fa fa-fw fa-file-text-o"></i></a>
  33. {{$title}}
  34. <div class="ui sub header wrap">
  35. {{$timeSince := TimeSince .Author.When $.Lang}}
  36. {{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}}
  37. </div>
  38. </div>
  39. </div>
  40. <h2 class="ui top header">{{.i18n.Tr "repo.wiki.wiki_page_revisions"}}</h2>
  41. <div class="ui" style="margin-top: 1rem;">
  42. <h4 class="ui top attached header">
  43. <div class="ui stackable grid">
  44. <div class="sixteen wide column">
  45. {{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}}
  46. </div>
  47. </div>
  48. </h4>
  49. {{if and .Commits (gt .CommitCount 0)}}
  50. {{template "repo/commits_list" .}}
  51. {{end}}
  52. {{template "base/paginate" .}}
  53. </div>
  54. </div>
  55. </div>
  56. {{template "base/footer" .}}