aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-17 18:46:54 +0800
committerslene <vslene@gmail.com>2014-03-17 18:46:54 +0800
commit5bc2a1a6f98ae42ab5c30299d26082ffae54b859 (patch)
tree5bed6b099888bf745a9f749e90de22d61ee14618 /templates
parent26f9962b6e0089773615ca34ab80ca01ede79790 (diff)
downloadgitea-5bc2a1a6f98ae42ab5c30299d26082ffae54b859.tar.gz
gitea-5bc2a1a6f98ae42ab5c30299d26082ffae54b859.zip
show readme.md
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/single.tmpl12
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/repo/single.tmpl b/templates/repo/single.tmpl
index 153910f78a..c22f129fb7 100644
--- a/templates/repo/single.tmpl
+++ b/templates/repo/single.tmpl
@@ -87,9 +87,15 @@
<div class="panel-heading file-head">
<i class="icon fa fa-book"></i> README.md
</div>
- <div class="panel-body file-body markdown">
- markdown content
- </div>
+ {{if .FileIsLarge}}
+ <div class="panel-footer">
+ Large file size 1000kb
+ </div>
+ {{else}}
+ <div class="panel-body file-body markdown">
+ {{.ReadmeContent|str2html}}
+ </div>
+ {{end}}
</div>
</div>
</div>