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 2.8 kB

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