summaryrefslogtreecommitdiffstats
path: root/templates/repo/view_file.tmpl
diff options
context:
space:
mode:
authorfuxiaohei <fuxiaohei@vip.qq.com>2014-09-27 17:08:57 +0800
committerfuxiaohei <fuxiaohei@vip.qq.com>2014-09-27 17:08:57 +0800
commitdccc50e9d4d217cea91d76f17fa60bf5c0a6fb03 (patch)
tree5f118da4b713017a30885126819c4221daf0af89 /templates/repo/view_file.tmpl
parentad2ab6d21496e60e7589c44bdfcc15bba01ae9dd (diff)
downloadgitea-dccc50e9d4d217cea91d76f17fa60bf5c0a6fb03.tar.gz
gitea-dccc50e9d4d217cea91d76f17fa60bf5c0a6fb03.zip
template and ui fix
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r--templates/repo/view_file.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index 96efcdac54..228d10cd99 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -1,4 +1,4 @@
-<div class="panel panel-radius" id="repo-readme">
+<div class="panel panel-radius" id="{{if .ReadmeExist}}repo-readme{{else}}repo-read-file{{end}}">
<p class="panel-header">
{{if .ReadmeExist}}
<i class="icon fa fa-book fa-lg"></i>
@@ -12,7 +12,7 @@
<strong class="file-name">{{.FileName}}</strong><span class="file-size">{{FileSize .FileSize}}</span>
{{end}}
</p>
- <div class="{{if .ReadmeExist}}panel-content markdown{{end}} code-view">
+ <div class="{{if .ReadmeExist}}panel-content markdown{{end}} code-view" id="repo-code-view">
{{if .ReadmeExist}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsFileText}}