Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <table id="repo-files-table" class="ui single line table">
  2. <thead>
  3. <tr class="commit-list">
  4. <th colspan="2">
  5. {{if .LatestCommitUser}}
  6. <img class="ui avatar image img-12" src="{{.LatestCommitUser.RelAvatarLink}}" />
  7. {{if .LatestCommitUser.FullName}}
  8. <a href="{{AppSubUrl}}/{{.LatestCommitUser.Name}}"><strong>{{.LatestCommitUser.FullName}}</strong></a>
  9. {{else}}
  10. <a href="{{AppSubUrl}}/{{.LatestCommitUser.Name}}"><strong>{{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}</strong></a>
  11. {{end}}
  12. {{else}}
  13. {{if .LatestCommit.Author}}
  14. <img class="ui avatar image img-12" src="{{AvatarLink .LatestCommit.Author.Email}}" />
  15. <strong>{{.LatestCommit.Author.Name}}</strong>
  16. {{end}}
  17. {{end}}
  18. <a rel="nofollow" class="ui sha label {{if .LatestCommit.Signature}} isSigned {{if .LatestCommitVerification.Verified }} isVerified{{if eq .LatestCommitVerification.TrustStatus "trusted"}}{{else if eq .LatestCommitVerification.TrustStatus "untrusted"}}Untrusted{{else}}Unmatched{{end}}{{else if .LatestCommitVerification.Warning}} isWarning{{end}}{{end}}" href="{{.RepoLink}}/commit/{{.LatestCommit.ID}}">
  19. <span class="shortsha">{{ShortSha .LatestCommit.ID.String}}</span>
  20. {{if .LatestCommit.Signature}}
  21. <div class="ui detail icon button">
  22. {{if .LatestCommitVerification.Verified}}
  23. <div title="{{if eq .LatestCommitVerification.TrustStatus "trusted"}}{{else if eq .LatestCommitVerification.TrustStatus "untrusted"}}{{.i18n.Tr "repo.commits.signed_by_untrusted_user"}}: {{else}}{{.i18n.Tr "repo.commits.signed_by_untrusted_user_unmatched"}}: {{end}}{{.LatestCommitVerification.Reason}}">
  24. {{if ne .LatestCommitVerification.SigningUser.ID 0}}
  25. <i class="lock icon"></i>
  26. <img class="ui signature avatar image" src="{{.LatestCommitVerification.SigningUser.RelAvatarLink}}" />
  27. {{else}}
  28. <i title="{{.LatestCommitVerification.Reason}}" class="icons">
  29. <i class="lock icon"></i>
  30. <i class="tiny inverted cog icon centerlock"></i>
  31. </i>
  32. <img class="ui signature avatar image" src="{{AvatarLink .LatestCommitVerification.SigningEmail}}" />
  33. {{end}}
  34. </div>
  35. {{else}}
  36. <i title="{{$.i18n.Tr .LatestCommitVerification.Reason}}" class="unlock icon"></i>
  37. {{end}}
  38. </div>
  39. {{end}}
  40. </a>
  41. {{template "repo/commit_status" .LatestCommitStatus}}
  42. {{ $commitLink:= printf "%s/commit/%s" .RepoLink .LatestCommit.ID }}
  43. <span class="grey commit-summary" title="{{.LatestCommit.Summary}}"><span class="message-wrapper">{{RenderCommitMessageLinkSubject .LatestCommit.Message $.RepoLink $commitLink $.Repository.ComposeMetas}}</span>
  44. {{if IsMultilineCommitMessage .LatestCommit.Message}}
  45. <button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button>
  46. <pre class="commit-body" style="display: none;">{{RenderCommitBody .LatestCommit.Message $.RepoLink $.Repository.ComposeMetas}}</pre>
  47. {{end}}
  48. </span>
  49. </th>
  50. <th class="text grey right age">{{if .LatestCommit.Author}}{{TimeSince .LatestCommit.Author.When $.Lang}}{{end}}</th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. {{if .HasParentPath}}
  55. <tr class="has-parent">
  56. <td colspan="3">{{svg "octicon-reply" 16}}<a href="{{EscapePound .BranchLink}}{{.ParentPath}}">..</a></td>
  57. </tr>
  58. {{end}}
  59. {{range $item := .Files}}
  60. {{$entry := index $item 0}}
  61. {{$commit := index $item 1}}
  62. <tr>
  63. {{if $entry.IsSubModule}}
  64. <td>
  65. <span class="truncate">
  66. {{svg "octicon-file-submodule" 16}}
  67. {{$refURL := $commit.RefURL AppUrl $.Repository.FullName}}
  68. {{if $refURL}}
  69. <a href="{{$refURL}}">{{$entry.Name}}</a> @ <a href="{{$refURL}}/commit/{{$commit.RefID}}">{{ShortSha $commit.RefID}}</a>
  70. {{else}}
  71. {{$entry.Name}} @ {{ShortSha $commit.RefID}}
  72. {{end}}
  73. </span>
  74. </td>
  75. {{else}}
  76. <td class="name four wide">
  77. <span class="truncate">
  78. {{if $entry.IsDir}}
  79. {{$subJumpablePathName := $entry.GetSubJumpablePathName}}
  80. {{$subJumpablePath := SubJumpablePath $subJumpablePathName}}
  81. {{svg "octicon-file-directory" 16}}
  82. <a href="{{EscapePound $.TreeLink}}/{{EscapePound $subJumpablePathName}}" title="{{$subJumpablePathName}}">
  83. {{if eq (len $subJumpablePath) 2}}
  84. <span class="jumpable-path">{{index $subJumpablePath 0}}</span>{{index $subJumpablePath 1}}
  85. {{else}}
  86. {{index $subJumpablePath 0}}
  87. {{end}}
  88. </a>
  89. {{else}}
  90. {{svg (printf "octicon-%s" (EntryIcon $entry)) 16}}
  91. <a href="{{EscapePound $.TreeLink}}/{{EscapePound $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a>
  92. {{end}}
  93. </span>
  94. </td>
  95. {{end}}
  96. <td class="message nine wide">
  97. <span class="truncate">
  98. <a href="{{$.RepoLink}}/commit/{{$commit.ID}}" title="{{$commit.Summary}}">{{$commit.Summary | RenderEmoji}}</a>
  99. </span>
  100. </td>
  101. <td class="text right age three wide">{{TimeSince $commit.Committer.When $.Lang}}</td>
  102. </tr>
  103. {{end}}
  104. </tbody>
  105. </table>
  106. {{if .ReadmeExist}}
  107. {{template "repo/view_file" .}}
  108. {{end}}