summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-13 17:10:25 -0500
committerUnknwon <u@gogs.io>2015-11-13 17:10:25 -0500
commit1d57f0d64fcd9aec16b4003d5664f31ea748da03 (patch)
treea369a2581ffc57633c1813dee8ff29d2655fdeb0 /routers/repo
parent1559bd58e7dee6927d31e1aaf1b6ebfc0ffd59dc (diff)
downloadgitea-1d57f0d64fcd9aec16b4003d5664f31ea748da03.tar.gz
gitea-1d57f0d64fcd9aec16b4003d5664f31ea748da03.zip
Show custom avatars in commits
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/view.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go
index 6a3e0cb3bc..1d9f1f3d87 100644
--- a/routers/repo/view.go
+++ b/routers/repo/view.go
@@ -16,6 +16,7 @@ import (
"github.com/gogits/gogs/modules/git"
"github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/middleware"
+ "github.com/gogits/gogs/modules/template"
)
const (
@@ -105,7 +106,7 @@ func Home(ctx *middleware.Context) {
if readmeExist {
ctx.Data["FileContent"] = string(base.RenderMarkdown(buf, path.Dir(treeLink)))
} else {
- if err, content := base.ToUtf8WithErr(buf); err != nil {
+ if err, content := template.ToUtf8WithErr(buf); err != nil {
if err != nil {
log.Error(4, "Convert content encoding: %s", err)
}