summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-25 00:42:57 +0800
committerslene <vslene@gmail.com>2014-03-25 00:42:57 +0800
commit123c7b44e81ce5e51448a01965843516b586e3e0 (patch)
treea4e412651e0a4a3603ca8d4c4840446eaae7f0b5 /templates
parent79633ab1fbb823ca2f6267e99bb8912ce227d293 (diff)
downloadgitea-123c7b44e81ce5e51448a01965843516b586e3e0.tar.gz
gitea-123c7b44e81ce5e51448a01965843516b586e3e0.zip
fix
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/single_file.tmpl22
1 files changed, 14 insertions, 8 deletions
diff --git a/templates/repo/single_file.tmpl b/templates/repo/single_file.tmpl
index 45586012ba..cf398595e5 100644
--- a/templates/repo/single_file.tmpl
+++ b/templates/repo/single_file.tmpl
@@ -2,22 +2,28 @@
<div class="panel-heading file-head">
{{if .ReadmeExist}}
<i class="icon fa fa-book"></i>
+ {{if .ReadmeInSingle}}
{{.FileName}}
+ {{else}}
+ {{.FileName}} <span class="file-size">{{FileSize .FileSize}}</span>
+ {{end}}
{{else}}
<i class="icon fa fa-file-text-o"></i>
{{.FileName}} <span class="file-size">{{FileSize .FileSize}}</span>
- <div class="btn-group pull-right">
- <a class="btn btn-default hidden" href="#">Edit</a>
- <a class="btn btn-default" href="{{.FileLink}}">Raw</a>
- <a class="btn btn-default hidden" href="#">Blame</a>
- <a class="btn btn-default hidden" href="#">History</a>
- <a class="btn btn-danger hidden" href="#">Delete</a>
- </div>
+ {{end}}
+ {{if not .ReadmeInSingle}}
+ <div class="btn-group pull-right">
+ <a class="btn btn-default hidden" href="#">Edit</a>
+ <a class="btn btn-default" href="{{.FileLink}}">Raw</a>
+ <a class="btn btn-default hidden" href="#">Blame</a>
+ <a class="btn btn-default hidden" href="#">History</a>
+ <a class="btn btn-danger hidden" href="#">Delete</a>
+ </div>
{{end}}
</div>
{{if not .FileIsText}}
<div class="panel-footer text-center">
- <a href="{{.FileLink}}" class="btn btn-default btn-lg">View Raw</a>
+ <a href="{{.FileLink}}" class="btn btn-default">View Raw</a>
</div>
{{else}}
{{if .ReadmeExist}}