aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-18 00:14:05 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-18 00:14:05 -0400
commite44d9ffd89be84ad0f2ddfe6fc986be8eb8fc032 (patch)
treefc945dd5fc86fbb2d5951b45a0c718f7c46615e5 /templates
parente656609b0d7780103fbed4472a6d6bef9a6d64d0 (diff)
downloadgitea-e44d9ffd89be84ad0f2ddfe6fc986be8eb8fc032.tar.gz
gitea-e44d9ffd89be84ad0f2ddfe6fc986be8eb8fc032.zip
Delete commit and update getlastcommit
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/single.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/single.tmpl b/templates/repo/single.tmpl
index 019ec8eaaa..3831c2dc41 100644
--- a/templates/repo/single.tmpl
+++ b/templates/repo/single.tmpl
@@ -42,10 +42,10 @@
<div class="panel panel-default info-box">
<div class="panel-heading info-head">
- <a href="/{{$username}}/{{$reponame}}/commit/{{.LatestCommit.SHA}}">{{.LatestCommit.Message}}</a>
+ <a href="/{{$username}}/{{$reponame}}/commit/{{.LastCommit.Oid.String}}">{{.LastCommit.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/{{.LastCommit.Author.Name}}">{{.LastCommit.Author.Name}}</a> <span class="text-muted">{{TimeSince .LastCommit.Author.When}}</span>
</div>
<table class="panel-footer table file-list">
<thead class="hidden">