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