<%doc> USAGE DOCUMENTATION :: PLEASE LEAVE THIS AT THE TOP OF THIS FILE For Mako templating syntax documentation please visit: http://docs.makotemplates.org/en/latest/ Filename: mobile_devices_table.html Version: 0.1 DOCUMENTATION :: END

% for device in sorted(devices_list, key=lambda k: ((k['friendly_name'] or k['device_name']).lower(), k['id'])):
- % if device['official'] == -1: % elif device['official'] > 0: <% icon = 'mobile' if device['platform'] == 'android': icon = 'android' elif device['platform'] == 'ios': icon = 'apple' %> % else: % endif ${device['friendly_name'] or device['device_name']} (${device['id']}) % if device['last_seen']:
  % else: never % endif
% endfor
- Register a new device