{{# we may be built from a status update, so the device is passed to us through the query}} {{if d==null}} {{d=device_by_ref queries['ref']}} {{end}} {{if d==null}} Bad ref {{queries['ref']}} {{else}} {{have_important_ref=0}} {{# check if we an important feature selected, if not, we are displaying the auto selected primary feature and we need to not display that in the features bar}} {{auto_primary = (find_best_primary_feature d.ref)}} {{ for dp in d.display_priority }} {{if dp.display_type == 'DISPLAY_IMPORTANT'}} {{have_important_ref=dp.ref}} {{end}} {{end}}
{{end}}