summaryrefslogtreecommitdiffstats
path: root/templates/repo/commits.tmpl
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-28 00:07:22 +0800
committerslene <vslene@gmail.com>2014-03-28 00:07:22 +0800
commit677643b812cdc3bce3b7ef7839239b3059376684 (patch)
tree92c72eb18513b972a0037172891c415c54b7614d /templates/repo/commits.tmpl
parentc796ed3849e3cd5b28cc8234edc71bbedafbc7da (diff)
downloadgitea-677643b812cdc3bce3b7ef7839239b3059376684.tar.gz
gitea-677643b812cdc3bce3b7ef7839239b3059376684.zip
fix read commit source
Diffstat (limited to 'templates/repo/commits.tmpl')
-rw-r--r--templates/repo/commits.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl
index 2f308a108d..efe35936c4 100644
--- a/templates/repo/commits.tmpl
+++ b/templates/repo/commits.tmpl
@@ -27,7 +27,7 @@
{{range $r}}
<tr>
<td class="author"><img class="avatar" src="{{AvatarLink .Committer.Email}}" alt=""/><a href="/user/{{.Committer.Name}}">{{.Committer.Name}}</a></td>
- <td class="sha"><a class="label label-success" href="/{{$username}}/{{$reponame}}/commit/{{.Id}} ">{{SubStr .Id.String 0 7}} </a></td>
+ <td class="sha"><a class="label label-success" href="/{{$username}}/{{$reponame}}/commit/{{.Id}} ">{{SubStr .Id.String 0 10}} </a></td>
<td class="message">{{.Message}} </td>
<td class="date">{{TimeSince .Committer.When}}</td>
</tr>
@@ -37,4 +37,4 @@
</div>
</div>
</div>
-{{template "base/footer" .}} \ No newline at end of file
+{{template "base/footer" .}}