mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 00:53:37 +02:00
Add browser icons. Currently requires stf-browser-db to be npm linked to work.
This commit is contained in:
@@ -26,15 +26,15 @@
|
||||
li
|
||||
a(ng-click='clearHistory()', type='button', translate).btn-link Clear
|
||||
|
||||
.btn-group
|
||||
.btn-group(ng-if='$root.browser')
|
||||
button.btn.btn-smx.btn-default-outline.dropdown-toggle
|
||||
//img(ng-src='/img/platforms/{{$root.browser}}.png').browser-icon
|
||||
img(ng-src='/static/browsers/icon/16x16/{{$root.browser.type}}.png').browser-icon
|
||||
//| {{$root.browser | browserName}}
|
||||
span(ng-show='$root.browser') {{$root.browser.name}} ({{$root.browser.type}})
|
||||
span(ng-show='$root.browser') {{$root.browser.name}} ({{$root.browser.developer}})
|
||||
span.caret(ng-show='device.browser.apps.length > 1')
|
||||
ul.dropdown-menu(ng-show='device.browser.apps.length > 1')
|
||||
li(ng-repeat='b in device.browser.apps')
|
||||
a(ng-click='$root.browser = b').pointer
|
||||
span {{b.name}} ({{b.type}})
|
||||
//img(ng-src='/img/platforms/{{b}}.png').browser-icon.pointer
|
||||
//| {{ b | browserName }}
|
||||
img(ng-src='/static/browsers/icon/16x16/{{b.type}}.png').browser-icon.pointer
|
||||
span {{b.name}} ({{b.developer}})
|
||||
//| {{ b | browserName }}
|
||||
|
||||
Reference in New Issue
Block a user