Browse Source

fix

for-closed-social
slene 10 years ago
parent
commit
52959c988c
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      templates/repo/single_file.tmpl

+ 4
- 2
templates/repo/single_file.tmpl View File

@ -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">

Loading…
Cancel
Save