diff options
author | slene <vslene@gmail.com> | 2014-03-17 18:46:54 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-17 18:46:54 +0800 |
commit | 5bc2a1a6f98ae42ab5c30299d26082ffae54b859 (patch) | |
tree | 5bed6b099888bf745a9f749e90de22d61ee14618 /templates | |
parent | 26f9962b6e0089773615ca34ab80ca01ede79790 (diff) | |
download | gitea-5bc2a1a6f98ae42ab5c30299d26082ffae54b859.tar.gz gitea-5bc2a1a6f98ae42ab5c30299d26082ffae54b859.zip |
show readme.md
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/single.tmpl | 12 |
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> |