summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-25 02:47:43 +0800
committerUnknwon <u@gogs.io>2015-08-25 02:47:43 +0800
commit3a32cbee440bbba034ff68d399b3620fa8679253 (patch)
tree835ae277443b8227dd8d1b321fdb731a5cc00a32 /templates
parenta1042487922476f216c39519da793dad75739e74 (diff)
downloadgitea-3a32cbee440bbba034ff68d399b3620fa8679253.tar.gz
gitea-3a32cbee440bbba034ff68d399b3620fa8679253.zip
#1246 Dashboard error: nil commits
Diffstat (limited to 'templates')
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/user/dashboard/feeds.tmpl2
2 files changed, 3 insertions, 1 deletions
diff --git a/templates/.VERSION b/templates/.VERSION
index 5b133cfbe6..90fe3b1585 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.6.5.0824 Beta \ No newline at end of file
+0.6.5.0825 Beta \ No newline at end of file
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl
index d2e66b308b..3ef3da3c12 100644
--- a/templates/user/dashboard/feeds.tmpl
+++ b/templates/user/dashboard/feeds.tmpl
@@ -27,9 +27,11 @@
<ul class="list-no-style">
{{ $push := ActionContent2Commits .}}
{{ $repoLink := .GetRepoLink}}
+ {{if $push.Commits}}
{{range $push.Commits}}
<li><img class="avatar-16" src="{{AvatarLink .AuthorEmail}}?s=16"> <a href="{{$repoLink}}/commit/{{.Sha1}}">{{ShortSha .Sha1}}</a> <span class="text-truncate grid-4-5">{{.Message}}</span></li>
{{end}}
+ {{end}}
{{if $push.CompareUrl}}<li><a href="{{AppSubUrl}}/{{$push.CompareUrl}}">{{$.i18n.Tr "action.compare_2_commits"}} ยป</a></li>{{end}}
</ul>
</div>