{% extends "home/base_usbcontent.html" %} {% load tags %} {% block tabledata %} Date Device Vendor Id Product Id USB Class Station {% for entry in content %} {% ifequal entry.status "Connected" %} {% else%} {% endifequal %} {{ entry.event_timestamp }} {{ entry.device.caption }} {% get_vendor_product_names entry.device.vendor_id entry.device.product_id as vendor_product %} {{vendor_product.0}} {{vendor_product.1}} {% for usb_info in entry.device.usb_class|split:'|'%} {% get_usb_data usb_info as usb_data %} {% endfor %}
{{ usb_data.0 }}
{{entry.station}} {% get_device_type entry.device as type %} {% if type == 'Mouse' %} {% elif type == 'Keyboard' %} {% elif type == 'Phone' %} {% else%} {% endif %} {% endfor %} {% endblock %}