2015-08-20 20:18:49 +08:00
|
|
|
{{template "base/head" .}}
|
|
|
|
<div class="repository diff">
|
|
|
|
{{template "repo/header" .}}
|
2015-08-21 00:18:30 +08:00
|
|
|
<div class="ui container">
|
|
|
|
{{if .IsDiffCompare }}
|
|
|
|
{{template "repo/commits_table" .}}
|
|
|
|
{{else}}
|
|
|
|
<h4 class="ui top attached info header">
|
|
|
|
<div class="ui right">
|
|
|
|
<a class="ui blue tiny button" href="{{EscapePound .SourcePath}}">
|
|
|
|
{{.i18n.Tr "repo.diff.browse_source"}}
|
|
|
|
</a>
|
|
|
|
</div>
|
2015-12-05 10:32:33 +08:00
|
|
|
{{RenderCommitMessage .Commit.Message $.RepoLink $.Repository.ComposeMetas}}
|
2015-08-21 00:18:30 +08:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached info segment">
|
|
|
|
{{if .Author}}
|
|
|
|
<img class="ui avatar image" src="{{.Author.AvatarLink}}" />
|
|
|
|
<a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}}</strong></a>
|
|
|
|
{{else}}
|
|
|
|
<img class="ui avatar image" src="{{AvatarLink .Commit.Author.Email}}" />
|
|
|
|
<strong>{{.Commit.Author.Name}}</strong>
|
2015-08-20 20:18:49 +08:00
|
|
|
{{end}}
|
2015-08-21 00:18:30 +08:00
|
|
|
<span class="text grey" id="authored-time">{{TimeSince .Commit.Author.When $.Lang}}</span>
|
|
|
|
<div class="ui right">
|
|
|
|
<div class="ui horizontal list">
|
2015-08-31 15:24:28 +08:00
|
|
|
{{if .Parents}}
|
2015-08-21 00:18:30 +08:00
|
|
|
<div class="item">
|
|
|
|
{{.i18n.Tr "repo.diff.parent"}}
|
|
|
|
</div>
|
|
|
|
<div class="item">
|
|
|
|
{{range .Parents}}
|
|
|
|
<a class="ui blue sha label" href="{{$.RepoLink}}/commit/{{.}}">{{ShortSha .}}</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2015-08-31 15:24:28 +08:00
|
|
|
{{end}}
|
2015-08-21 00:18:30 +08:00
|
|
|
<div class="item">{{.i18n.Tr "repo.diff.commit"}}</div>
|
2015-08-31 15:24:28 +08:00
|
|
|
<div class="item"><span class="ui blue sha label">{{ShortSha .CommitID}}</span></div>
|
2014-03-24 21:27:19 +08:00
|
|
|
</div>
|
2015-08-21 00:18:30 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2015-09-02 07:07:02 +08:00
|
|
|
{{template "repo/diff_box" .}}
|
2015-08-20 20:18:49 +08:00
|
|
|
</div>
|
2014-03-24 21:27:19 +08:00
|
|
|
</div>
|
2015-08-20 20:18:49 +08:00
|
|
|
{{template "base/footer" .}}
|