{% extends "home/base_usbcontent.html" %} {% load tags %} {% block tabledata %} Date Info {% for event in content %} {% if event.device %} {% ifequal event.status "Connected" %} {% else%} {% endifequal %} {{ event.event_timestamp }} {% if event.device.caption %} {{ event.device.caption|split:'|'|last }} {% else %} {% get_vendor_product_names event.device.vendor_id event.device.product_id as usb_info %} USB Device with vid={{ usb_info.0 }} and pid={{ usb_info.1 }} {% endif %} {% ifequal event.status "Connected" %} was {{event.status}} to station {% else%} was {{event.status}} from station {% endifequal %} {{event.station}} {% get_device_type event.device as type %} {% if type == 'Mouse' %} {% elif type == 'Keyboard' %} {% elif type == 'Phone' %} {% else%} {% endif %} {% elif event.mass_storage_device %} {% ifequal event.status "Connected" %} {% else%} {% endifequal %} {{ event.event_timestamp }} {{ event.mass_storage_device.caption }} with serial number {{ event.mass_storage_device.serial_number }} {% ifequal event.status "Connected" %} was {{event.status}} to station {% else%} was {{event.status}} from station {% endifequal %} {{event.station}} {% ifequal event.status "Connected" %} and mapped to {{event.logical_drive}} {% endifequal %} {% endif %} {% endfor %} {% endblock %}