aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/view_file.tmpl
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-12 18:29:58 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-12 18:29:58 -0400
commitcfed11f092580ecf47cff43274c7cdd10d07bffd (patch)
tree0fc15282e980d9e65341a3ad009f982db0a10b5a /templates/repo/view_file.tmpl
parentf67c59135fe258a9e839af7f839770b445d58732 (diff)
downloadgitea-cfed11f092580ecf47cff43274c7cdd10d07bffd.tar.gz
gitea-cfed11f092580ecf47cff43274c7cdd10d07bffd.zip
Bug: Transfer repository doesn't update the count
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r--templates/repo/view_file.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index fb05945b9f..96efcdac54 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -14,7 +14,7 @@
</p>
<div class="{{if .ReadmeExist}}panel-content markdown{{end}} code-view">
{{if .ReadmeExist}}
- {{.FileContent | Str2html}}
+ {{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsFileText}}
<div class="view-raw">
{{if .IsImageFile}}