You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

page.tmpl 3.0 kB

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