Merge pull request #19 from rikschennink/master
Add browser version information
This commit is contained in:
commit
0f29f576cc
|
@ -11,19 +11,16 @@
|
||||||
</th>
|
</th>
|
||||||
{{ range $tested }}
|
{{ range $tested }}
|
||||||
<td>
|
<td>
|
||||||
|
{{ $browser := findRE "^[a-zA-Z ]+" . }}
|
||||||
|
{{ $browser := index $browser 0 }}
|
||||||
|
{{ $version := findRE "[0-9]+$" . }}
|
||||||
|
{{ $slug := replace $browser " " "-" | lower }}
|
||||||
|
<img src="{{ (printf "images/browser-%s" $slug) | absURL }}.svg" alt="">
|
||||||
|
<span><strong>{{ $browser }} {{ index $version 0 }}</strong></span>
|
||||||
{{ if in . "+" }}
|
{{ if in . "+" }}
|
||||||
{{ $parts := split . "+" }}
|
{{ $parts := split . "+" }}
|
||||||
{{ $browser := index $parts 0 }}
|
|
||||||
{{ $additional := index $parts 1 }}
|
{{ $additional := index $parts 1 }}
|
||||||
{{ $slug := replace $browser " " "-" | lower }}
|
|
||||||
<img src="{{ (printf "images/browser-%s" $slug) | absURL }}.svg" alt="">
|
|
||||||
<span><strong>{{ $browser }}</strong></span>
|
|
||||||
<span class="additional">with <strong>{{ $additional }}</strong></span>
|
<span class="additional">with <strong>{{ $additional }}</strong></span>
|
||||||
{{ else }}
|
|
||||||
{{ $browser := . }}
|
|
||||||
{{ $slug := replace $browser " " "-" | lower }}
|
|
||||||
<img src="{{ (printf "images/browser-%s" $slug) | absURL }}.svg" alt="">
|
|
||||||
<span><strong>{{ $browser }}</strong></span>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</td>
|
</td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user