diff options
Diffstat (limited to 'templates/repo/single_file.tmpl')
-rw-r--r-- | templates/repo/single_file.tmpl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/repo/single_file.tmpl b/templates/repo/single_file.tmpl new file mode 100644 index 0000000000..f74e09de09 --- /dev/null +++ b/templates/repo/single_file.tmpl @@ -0,0 +1,20 @@ +<div class="panel panel-default file-content"> + <div class="panel-heading file-head"> + <i class="icon fa fa-book"></i> {{.FileName}} + </div> + {{if .FileIsLarge}} + <div class="panel-footer"> + Large file size 1000kb + </div> + {{else}} + {{if .ReadmeExist}} + <div class="panel-body file-body markdown"> + {{.FileContent|str2html}} + </div> + {{else}} + <div class="panel-body file-body markdown"> + <pre><code>{{.FileContent|str2html}}</code></pre> + </div> + {{end}} + {{end}} +</div>
\ No newline at end of file |