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.

49 lines
1.8 KiB

10 years ago
  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">
  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">
  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. {{end}}
  45. {{template "repo/diff/box" .}}
  46. </div>
  47. </div>
  48. {{template "base/footer" .}}