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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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>{{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. </div>
  17. <div class="ui attached info segment {{if .Commit.Signature}} isSigned {{if .Verification.Verified }} isVerified {{end}}{{end}}">
  18. <div class="ui stackable grid">
  19. <div class="nine wide column">
  20. {{if .Author}}
  21. <img class="ui avatar image" src="{{.Author.RelAvatarLink}}" />
  22. {{if .Author.FullName}}
  23. <a href="{{.Author.HomeLink}}"><strong>{{.Author.FullName}}</strong></a> {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}}
  24. {{else}}
  25. <a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}}</strong></a> {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}}
  26. {{end}}
  27. {{else}}
  28. <img class="ui avatar image" src="{{AvatarLink .Commit.Author.Email}}" />
  29. <strong>{{.Commit.Author.Name}}</strong>
  30. {{end}}
  31. <span class="text grey" id="authored-time">{{TimeSince .Commit.Author.When $.Lang}}</span>
  32. </div>
  33. <div class="seven wide right aligned column">
  34. <div class="ui horizontal list">
  35. {{if .Parents}}
  36. <div class="item">
  37. {{.i18n.Tr "repo.diff.parent"}}
  38. </div>
  39. <div class="item">
  40. {{range .Parents}}
  41. <a class="ui blue sha label" href="{{$.RepoLink}}/commit/{{.}}">{{ShortSha .}}</a>
  42. {{end}}
  43. </div>
  44. {{end}}
  45. <div class="mobile-only"></div>
  46. <div class="item">{{.i18n.Tr "repo.diff.commit"}}</div>
  47. <div class="item"><span class="ui blue sha label">{{ShortSha .CommitID}}</span></div>
  48. </div>
  49. </div><!-- end column -->
  50. </div><!-- end grid -->
  51. </div>
  52. {{if .Commit.Signature}}
  53. {{if .Verification.Verified }}
  54. <div class="ui bottom attached positive message" style="text-align: initial;color: black;">
  55. <i class="green lock icon"></i>
  56. <span style="color: #2C662D;">{{.i18n.Tr "repo.commits.signed_by"}}:</span>
  57. <a href="{{.Verification.SigningUser.HomeLink}}"><strong>{{.Commit.Committer.Name}}</strong></a> <{{.Commit.Committer.Email}}>
  58. <span class="pull-right"><span style="color: #2C662D;">{{.i18n.Tr "repo.commits.gpg_key_id"}}:</span> {{.Verification.SigningKey.KeyID}}</span>
  59. </div>
  60. {{else}}
  61. <div class="ui bottom attached message" style="text-align: initial;color: black;">
  62. <i class="grey unlock icon"></i>
  63. {{.i18n.Tr .Verification.Reason}}
  64. </div>
  65. {{end}}
  66. {{end}}
  67. {{end}}
  68. {{template "repo/diff/box" .}}
  69. </div>
  70. </div>
  71. {{template "base/footer" .}}