summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-24 12:45:57 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-24 12:45:57 -0400
commit6ef3e8b3c9a085e3d99b02ba7bb80fc8126f2f90 (patch)
tree2ebe23760d765339bda83f9685dd790fe1dfcee2 /templates
parent743fee60158edb5815b86504db29b268f29e1cbf (diff)
parent123c7b44e81ce5e51448a01965843516b586e3e0 (diff)
downloadgitea-6ef3e8b3c9a085e3d99b02ba7bb80fc8126f2f90.tar.gz
gitea-6ef3e8b3c9a085e3d99b02ba7bb80fc8126f2f90.zip
Merge branch 'master' of github.com:gogits/gogs
Conflicts: templates/repo/single_file.tmpl
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/single_file.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/repo/single_file.tmpl b/templates/repo/single_file.tmpl
index 6c7e5650a3..cf398595e5 100644
--- a/templates/repo/single_file.tmpl
+++ b/templates/repo/single_file.tmpl
@@ -2,11 +2,16 @@
<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>
{{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>
@@ -14,10 +19,11 @@
<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}}