This commit is contained in:
parent
dcbddfc6cd
commit
dbaa8f1de7
2 changed files with 56 additions and 0 deletions
|
@ -8,6 +8,42 @@
|
|||
<option {{if eq $.SelectedLibrary $l.ID }} selected {{end}}value="{{$l.ID}}">{{$l.Name}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
|
||||
<h4>Size</h4>
|
||||
<div class="counter">
|
||||
{{ $l := len .Size }}
|
||||
{{range $i, $c := .Size}}
|
||||
<img class="counter-image" alt="{{$c}}" src="/static/counter/{{$c}}.gif">
|
||||
{{ $n := sub $l $i }}
|
||||
{{ if eq $n 4 }}
|
||||
KB
|
||||
{{ else if eq $n 7 }}
|
||||
MB
|
||||
{{ else if eq $n 10 }}
|
||||
GB
|
||||
{{ else if eq $n 13 }}
|
||||
TB
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
<h4>Files</h4>
|
||||
<div class="counter">
|
||||
{{ $l := len .Count }}
|
||||
{{range $i, $c := .Count}}
|
||||
<img class="counter-image" alt="{{$c}}" src="/static/counter/{{$c}}.gif">
|
||||
{{ $n := sub $l $i }}
|
||||
{{ if eq $n 4 }}
|
||||
.
|
||||
{{ else if eq $n 7 }}
|
||||
.
|
||||
{{ else if eq $n 10 }}
|
||||
.
|
||||
{{ else if eq $n 13 }}
|
||||
.
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="stats">
|
||||
{{range $c := .Charts}}
|
||||
{{$c.Element}} {{$c.Script}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue