diff options
author | Unknwon <u@gogs.io> | 2015-08-31 16:24:28 +0900 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-31 16:24:28 +0900 |
commit | 1ca257ad9f90084f4140bd1df4692f9a56c83ad4 (patch) | |
tree | 124a621e8f2d60eea02215e949142bcdd684b791 /templates/repo/diff.tmpl | |
parent | cb381078ffa9f9a6178110be304dfcac5715e323 (diff) | |
download | gitea-1ca257ad9f90084f4140bd1df4692f9a56c83ad4.tar.gz gitea-1ca257ad9f90084f4140bd1df4692f9a56c83ad4.zip |
rename fields
Diffstat (limited to 'templates/repo/diff.tmpl')
-rw-r--r-- | templates/repo/diff.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 8b10cc8808..932a109e42 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -24,6 +24,7 @@ <span class="text grey" id="authored-time">{{TimeSince .Commit.Author.When $.Lang}}</span> <div class="ui right"> <div class="ui horizontal list"> + {{if .Parents}} <div class="item"> {{.i18n.Tr "repo.diff.parent"}} </div> @@ -32,8 +33,9 @@ <a class="ui blue sha label" href="{{$.RepoLink}}/commit/{{.}}">{{ShortSha .}}</a> {{end}} </div> + {{end}} <div class="item">{{.i18n.Tr "repo.diff.commit"}}</div> - <div class="item"><span class="ui blue sha label">{{ShortSha .CommitId}}</span></div> + <div class="item"><span class="ui blue sha label">{{ShortSha .CommitID}}</span></div> </div> </div> </div> |