Browse Source

file size and file raw style update

pull/35/head
FuXiaoHei 11 years ago
parent
commit
79633ab1fb
  1. 6
      public/css/gogs.css
  2. 4
      templates/repo/single_file.tmpl

6
public/css/gogs.css

@ -676,6 +676,12 @@ html, body {
margin: 0 .5em 0 0; margin: 0 .5em 0 0;
} }
.file-content .file-head .file-size{
font-size: 13px;
color: #888;
margin-left: 1em;
}
.file-content .file-body { .file-content .file-body {
padding: 30px 30px 50px; padding: 30px 30px 50px;
border: none; border: none;

4
templates/repo/single_file.tmpl

@ -5,7 +5,7 @@
{{.FileName}} {{.FileName}}
{{else}} {{else}}
<i class="icon fa fa-file-text-o"></i> <i class="icon fa fa-file-text-o"></i>
{{.FileName}} {{FileSize .FileSize}} {{.FileName}} <span class="file-size">{{FileSize .FileSize}}</span>
<div class="btn-group pull-right"> <div class="btn-group pull-right">
<a class="btn btn-default hidden" href="#">Edit</a> <a class="btn btn-default hidden" href="#">Edit</a>
<a class="btn btn-default" href="{{.FileLink}}">Raw</a> <a class="btn btn-default" href="{{.FileLink}}">Raw</a>
@ -17,7 +17,7 @@
</div> </div>
{{if not .FileIsText}} {{if not .FileIsText}}
<div class="panel-footer text-center"> <div class="panel-footer text-center">
<a href="{{.FileLink}}" class="btn btn-default">View Raw</a> <a href="{{.FileLink}}" class="btn btn-default btn-lg">View Raw</a>
</div> </div>
{{else}} {{else}}
{{if .ReadmeExist}} {{if .ReadmeExist}}

Loading…
Cancel
Save