{{# 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 (get_setting_bool 'gHideFeaturesBar')!='checked'}}
0}} onclick="show_children({{ d.primary_ref }})" {{end}} data-toggle="modal" data-target="#childcontrol" class="fa-point text-right col mr-2 devices_children_icon d-xl-inline-block float-xl-none border border-top-0 border-right-0 border-left-0 pb-1"> {{ for c in d.children }} {{if (user_has_access_for_display c.ref user)=='checked'}} {{# see if feature is hidden, hide if so, also hide if feature is already displayed in the body of the card }} {{dp = device_display_priority_by_feature d.ref c.ref}} {{if c.device_sub_type==14 || c.device_sub_type==1 || c.device_sub_type==3 || c.device_sub_type==4 || c.device_sub_type==13 || dp=='DISPLAY_HIDDEN' || dp=='DISPLAY_IMPORTANT' || (c.marked_hidden && ((get_setting_bool 'gHideDevices')=='checked'))}} {{else}} {{ if c.status_suffix=='%' || c.status_suffix=='@S@' }} {{ status_text_no_html c.ref }} {{ end }} {{end}} {{end}} {{ end }} {{ if d.child_count == 0 }} {{ end }}
{{end}}
{{if location1_display_first}} {{d.location}} {{if use_location2}} | {{d.location2}} {{end}} {{else}} {{if use_location2}}{{d.location2}} | {{end}}{{d.location}} {{end}}
{{d.name}}
{{ for c in d.children }} {{if c.device_sub_type==14}}
{{ status_image c.ref 80 }}
{{end}} {{end}}
{{ for c in d.children }} {{if c.device_sub_type==1}}
{{status_text_short c.ref}}
{{end}} {{end}}
{{ for c in d.children }} {{if c.device_sub_type==3}} {{for p in c.vspairs}} {{if p.control_use=='_Previous'}}
{{end}} {{if p.control_use=='_Pause'}}
{{end}} {{if p.control_use=='_Play'}}
{{end}} {{if p.control_use=='_Next'}}
{{end}} {{end}} {{end}} {{end}}
{{ for c in d.children }} {{if c.device_sub_type==4}} {{for p in c.vspairs}} {{if p.control_use=='_Volume'}}
{{end}} {{end}} {{end}} {{end}} {{ for c in d.children }} {{if c.device_sub_type==13 || c.device_sub_type==4}} {{havetoggle=false}} {{for p in c.vspairs}} {{if p.control_use=='_MuteToggle'}} {{havetoggle=true}}
{{if (device_value c.ref)==0}} {{end}} {{if (device_value c.ref)==1}} {{end}}
{{end}} {{end}} {{if !havetoggle}} {{for p in c.vspairs}} {{if p.control_use=='_Mute'}} {{end}} {{if p.control_use=='_UnMute'}} {{end}} {{end}} {{end}} {{end}} {{end}}
{{ last_change_root d.primary_ref }} {{ vc=(device_enabled_for_voice d.primary_ref) }} {{ if vc != '' }}    {{end}}