diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-18 11:22:19 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-18 11:22:19 +0800 |
commit | 3ceb008e1f50b89a2e0fda8fac939df92642219c (patch) | |
tree | 8df540f4da19a7e9bcb6bf8e79c6597935f9f587 /templates/repo/single.tmpl | |
parent | e656609b0d7780103fbed4472a6d6bef9a6d64d0 (diff) | |
download | gitea-3ceb008e1f50b89a2e0fda8fac939df92642219c.tar.gz gitea-3ceb008e1f50b89a2e0fda8fac939df92642219c.zip |
add commit view
Diffstat (limited to 'templates/repo/single.tmpl')
-rw-r--r-- | templates/repo/single.tmpl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/repo/single.tmpl b/templates/repo/single.tmpl index 019ec8eaaa..c19ade7781 100644 --- a/templates/repo/single.tmpl +++ b/templates/repo/single.tmpl @@ -45,7 +45,7 @@ <a href="/{{$username}}/{{$reponame}}/commit/{{.LatestCommit.SHA}}">{{.LatestCommit.Message}}</a> </div> <div class="panel-body info-content"> - <a href="/user/{{.LatestCommit.Author}}">{{.LatestCommit.Author}}</a> <span class="text-muted">{{TimeSince .LatestCommit.Date}}</span> + <a href="/user/{{.LatestCommit.Author}}">{{.LatestCommit.Author}}</a> <span class="text-muted">{{TimeSince .CurrentCommit.Committer.When}}</span> </div> <table class="panel-footer table file-list"> <thead class="hidden"> @@ -57,6 +57,7 @@ </tr> </thead> <tbody> + {{$currentCommit := .CurrentCommit}} {{range .Files}} <tr {{if .IsDir}}class="is-dir"{{end}}> @@ -73,10 +74,10 @@ </span> </td> <td class="text"> - <span class="wrap"><a href="/{{$username}}/{{$reponame}}/commit/{{.LastCommit}}">{{.Message}}</a></span> + <span class="wrap"><a href="/{{$username}}/{{$reponame}}/commit/{{.Commit.Oid}}">{{.Commit.Message}}</a></span> </td> <td class="date"> - <span class="wrap">{{TimeSince .Created}}</span> + <span class="wrap">{{TimeSince .Commit.Committer.When}}</span> </td> </tr> {{end}} |