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.

page.tmpl 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {{template "base/head" .}}
  2. <div class="repository diff">
  3. {{template "repo/header" .}}
  4. <div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
  5. {{if .IsDiffCompare }}
  6. {{template "repo/commits_table" .}}
  7. {{else}}
  8. <div class="ui top attached info clearing segment {{if .Commit.Signature}} isSigned {{if .Verification.Verified }} isVerified {{end}}{{end}}">
  9. <a class="ui floated right blue tiny button" href="{{EscapePound .SourcePath}}">
  10. {{.i18n.Tr "repo.diff.browse_source"}}
  11. </a>
  12. <h3 class="has-emoji">{{RenderCommitMessage .Commit.Message $.RepoLink $.Repository.ComposeMetas}}{{template "repo/commit_status" .CommitStatus}}</h3>
  13. {{if IsMultilineCommitMessage .Commit.Message}}
  14. <pre class="commit-body">{{RenderCommitBody .Commit.Message $.RepoLink $.Repository.ComposeMetas}}</pre>
  15. {{end}}
  16. <span class="text grey"><i class="octicon octicon-git-branch"></i>{{.BranchName}}</span>
  17. </div>
  18. <div class="ui attached info segment {{if .Commit.Signature}} isSigned {{if .Verification.Verified }} isVerified {{end}}{{end}}">
  19. <div class="ui stackable grid">
  20. <div class="nine wide column">
  21. {{if .Author}}
  22. <img class="ui avatar image" src="{{.Author.RelAvatarLink}}" />
  23. {{if .Author.FullName}}
  24. <a href="{{.Author.HomeLink}}"><strong>{{.Author.FullName}}</strong></a> {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}}
  25. {{else}}
  26. <a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}}</strong></a> {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}}
  27. {{end}}
  28. {{else}}
  29. <img class="ui avatar image" src="{{AvatarLink .Commit.Author.Email}}" />
  30. <strong>{{.Commit.Author.Name}}</strong>
  31. {{end}}
  32. <span class="text grey" id="authored-time">{{TimeSince .Commit.Author.When $.Lang}}</span>
  33. </div>
  34. <div class="seven wide right aligned column">
  35. <div class="ui horizontal list">
  36. {{if .Parents}}
  37. <div class="item">
  38. {{.i18n.Tr "repo.diff.parent"}}
  39. </div>
  40. <div class="item">
  41. {{range .Parents}}
  42. <a class="ui blue sha label" href="{{$.RepoLink}}/commit/{{.}}">{{ShortSha .}}</a>
  43. {{end}}
  44. </div>
  45. {{end}}
  46. <div class="mobile-only"></div>
  47. <div class="item">{{.i18n.Tr "repo.diff.commit"}}</div>
  48. <div class="item"><span class="ui blue sha label">{{ShortSha .CommitID}}</span></div>
  49. </div>
  50. </div><!-- end column -->
  51. </div><!-- end grid -->
  52. </div>
  53. {{if .Commit.Signature}}
  54. {{if .Verification.Verified }}
  55. <div class="ui bottom attached positive message">
  56. <i class="green lock icon"></i>
  57. <span>{{.i18n.Tr "repo.commits.signed_by"}}:</span>
  58. <a href="{{.Verification.SigningUser.HomeLink}}"><strong>{{.Commit.Committer.Name}}</strong></a> <{{.Commit.Committer.Email}}>
  59. <span class="pull-right"><span>{{.i18n.Tr "repo.commits.gpg_key_id"}}:</span> {{.Verification.SigningKey.KeyID}}</span>
  60. </div>
  61. {{else}}
  62. <div class="ui bottom attached message">
  63. <i class="grey unlock icon"></i>
  64. {{.i18n.Tr .Verification.Reason}}
  65. </div>
  66. {{end}}
  67. {{end}}
  68. {{end}}
  69. {{template "repo/diff/box" .}}
  70. </div>
  71. </div>
  72. {{template "base/footer" .}}