{css} {js} {tab_container id="trusteddevices"} {tab_header content_id="trusteddevicespanel"} {tab_header_cell icon="lms-ui-icon-trust"} {t a=count($userinfo.trusteddevices)}Trusted devices ($a):{/t} {/tab_header_cell} {/tab_header} {tab_contents id="trusteddevicespanel"} {tab_table} {if $userinfo.trusteddevices}
{trans("Web browser:")}
{trans("Added from IP:")}
{trans("Expires:")}
 
{/if} {foreach $userinfo.trusteddevices as $trusteddevice}
{$trusteddevice.useragent}
{$trusteddevice.ip}
{$trusteddevice.expires|date_format:"Y/m/d H:i:s"}
{button type="link" icon="delete" tip="Remove trusted device" class="delete-trusted-device"}
{foreachelse}
{trans("No trusted devices in database.")}
{/foreach} {/tab_table} {if $userinfo.trusteddevices} {tab_button_panel} {tab_buttons} {/tab_buttons} {tab_buttons} {button id="delete-all-trusted-devices" icon="delete" label="Delete all"} {/tab_buttons} {/tab_button_panel} {/if} {/tab_contents} {/tab_container}