summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/single_file.tmpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/repo/single_file.tmpl b/templates/repo/single_file.tmpl
index b4626053fd..0c1c3713f6 100644
--- a/templates/repo/single_file.tmpl
+++ b/templates/repo/single_file.tmpl
@@ -1,6 +1,10 @@
<div class="panel panel-default file-content">
<div class="panel-heading file-head">
- <i class="icon fa fa-book"></i> {{.FileName}}
+ {{if .ReadmeExist}}
+ <i class="icon fa fa-book"></i>
+ {{else}}
+ <i class="icon fa fa-file-text-o"></i>
+ {{end}}{{.FileName}}
</div>
{{if .FileIsLarge}}
<div class="panel-footer">
@@ -12,8 +16,8 @@
{{.FileContent|str2html}}
</div>
{{else}}
- <div class="panel-body file-body markdown">
- <pre><code>{{.FileContent}}</code></pre>
+ <div class="panel-body file-body file-code markdown">
+ <pre class="linenums"><code>{{.FileContent}}</code></pre>
</div>
{{end}}
{{end}}