counter add anotations
This commit is contained in:
parent
d612ce68c4
commit
13433c2972
2 changed files with 24 additions and 2 deletions
|
@ -1,7 +1,18 @@
|
|||
{{template "head"}}
|
||||
<div id="wierd-flex" class="counter">
|
||||
{{range $c := .Counter}}
|
||||
{{ $l := len .Counter }}
|
||||
{{range $i, $c := .Counter}}
|
||||
<img class="counter-image" alt="{{$c}}" src="/static/counter/{{$c}}.gif">
|
||||
{{ $n := sub $l $i }}
|
||||
{{ if $n eq 4 }}
|
||||
KB
|
||||
{{ else if $n eq 8 }}
|
||||
MB
|
||||
{{ else if $n eq 12 }}
|
||||
GB
|
||||
{{ else if $n eq 16 }}
|
||||
TB
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
<h2>Workers</h2>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue