diff options
author | slene <vslene@gmail.com> | 2014-03-24 23:59:27 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-24 23:59:27 +0800 |
commit | 52959c988c5613dfa0473f3d56442f46b98a665c (patch) | |
tree | 8591dc14e4cd1fc4004b55763302ae0ecd281356 /templates/repo | |
parent | ff362484191d08db2e2bda238934b780139b9048 (diff) | |
download | gitea-52959c988c5613dfa0473f3d56442f46b98a665c.tar.gz gitea-52959c988c5613dfa0473f3d56442f46b98a665c.zip |
fix
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/single_file.tmpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/repo/single_file.tmpl b/templates/repo/single_file.tmpl index 9755812285..d00bffa956 100644 --- a/templates/repo/single_file.tmpl +++ b/templates/repo/single_file.tmpl @@ -2,7 +2,10 @@ <div class="panel-heading file-head"> {{if .ReadmeExist}} <i class="icon fa fa-book"></i> + {{.FileName}} {{else}} + <i class="icon fa fa-file-text-o"></i> + {{.FileName}} {{FileSize .FileSize}} <div class="btn-group pull-right"> <a class="btn btn-default hidden" href="#">Edit</a> <a class="btn btn-default" href="{{.FileLink}}">Raw</a> @@ -10,8 +13,7 @@ <a class="btn btn-default hidden" href="#">History</a> <a class="btn btn-danger hidden" href="#">Delete</a> </div> - <i class="icon fa fa-file-text-o"></i> - {{end}}{{.FileName}} {{FileSize .FileSize}} + {{end}} </div> {{if not .FileIsText}} <div class="panel-footer text-center"> |