]> source.dussan.org Git - gitea.git/commitdiff
Fix TimeSince arguments error.
authorBenjamin Peng <j100002ben@gmail.com>
Tue, 16 Sep 2014 07:55:41 +0000 (15:55 +0800)
committerBenjamin Peng <j100002ben@gmail.com>
Tue, 16 Sep 2014 07:55:41 +0000 (15:55 +0800)
templates/repo/release/list.tmpl

index 0f02508fb9abd04cfbd621791f60a8258c51be32..b9f462588db9cae47e75337181a1e737d1481a29 100644 (file)
@@ -29,7 +29,7 @@
                     <p class="info">
                         <span class="author"><img class="avatar" src="{{.Publisher.AvatarLink}}" alt="" width="20">&nbsp;&nbsp;
                         <a href="/user/{{.Publisher.Name}}">{{.Publisher.Name}}</a></span>
-                        {{if .Created}}<span class="time">{{TimeSince .Created}}</span>{{end}}
+                        {{if .Created}}<span class="time">{{TimeSince .Created $.Lang}}</span>{{end}}
                         <span class="ahead"><strong>{{.NumCommitsBehind}}</strong> commits to {{.Target}} since this release</span>
                     </p>
                     <div class="markdown desc">