2017-07-08 13:21:43 +02:00
|
|
|
{{ $tested := replace (.Get "using") ", " "," }}
|
|
|
|
{{ $tested := replace $tested " + " "+" }}
|
|
|
|
{{ $tested := split $tested "," }}
|
|
|
|
<table class="tested">
|
|
|
|
<tr>
|
2017-08-14 18:56:50 +02:00
|
|
|
<th scope="row">Tested successfully using</th>
|
2017-07-08 13:21:43 +02:00
|
|
|
{{ range $tested }}
|
|
|
|
<td>
|
|
|
|
{{ if in . "+" }}
|
|
|
|
{{ $parts := split . "+" }}
|
|
|
|
{{ $browser := index $parts 0 }}
|
|
|
|
{{ $additional := index $parts 1 }}
|
2017-08-14 18:56:50 +02:00
|
|
|
{{ $slug := replace $browser " " "-" | lower }}
|
2017-07-12 16:20:00 +02:00
|
|
|
<img src="{{ (printf "images/browser-%s" $slug) | absURL }}.svg" alt="">
|
2017-07-08 13:21:43 +02:00
|
|
|
<span><strong>{{ $browser }}</strong></span>
|
|
|
|
<span class="additional">with <strong>{{ $additional }}</strong></span>
|
|
|
|
{{ else }}
|
|
|
|
{{ $browser := . }}
|
2017-08-14 18:56:50 +02:00
|
|
|
{{ $slug := replace $browser " " "-" | lower }}
|
2017-07-12 16:20:00 +02:00
|
|
|
<img src="{{ (printf "images/browser-%s" $slug) | absURL }}.svg" alt="">
|
2017-07-08 13:21:43 +02:00
|
|
|
<span><strong>{{ $browser }}</strong></span>
|
|
|
|
{{ end }}
|
|
|
|
</td>
|
|
|
|
{{ end }}
|
|
|
|
</tr>
|
|
|
|
</table>
|