{% extends 'base.html' %} {% block content %}

Inventory item.

{% if item.mac %} {% endif %} {% macro auditLine(timestamp, user) -%} {{ timestamp | timeago }} by {{ user | display_name }} {%- endmacro %}
Key Value
Type {{ item["type"] }}
Vendor {{ item.get("hardware").vendor }}
Product {{ item.get("hardware").product }}
Serial number {{ item.get("hardware").serial }}
MAC address {{ item.mac }}
Name {{ item.name }}
Comment {{ item.comment }}
Owner {{ item.inventory.get("owner").username | display_name }}
Current user {{ item.inventory.get("user").username | display_name }}
Last audited {% if item.inventory.get("audit") %} {% if item.inventory.get("audit", {}).get("log") %}
{{ auditLine(item.inventory.audit.timestamp, item.inventory.audit.username) }}
    {% for audit in item.inventory.audit.log | reverse %}
  • {{ auditLine(audit.timestamp, audit.username) }}
  • {% endfor %}
{% else %} {{ auditLine(item.inventory.audit.timestamp, item.inventory.audit.username) }} {% endif %} {% else %} Never {% endif %}
URL slug {% if item.get("shortener").slug %} k6.ee/{{ item.get("shortener").slug }} {% endif %}
QR Code (WIP) {% if item.get("shortener").slug %} {{ item.get("shortener", {}).get("slug") | qr_code }} {% endif %}
External link External link
Location {{ item.location }}
Public {% if item.inventory.public %}check_circle{% endif %}
Usable {% if item.inventory.usable %}check_circle{% endif %}

Tags

{% for tag in item.tags %}
{{ tag }}
{% endfor %}

Description

{{ item.description | markdown }}

Photo

{% if item.has_photo %} {% endif %}
Select

Actions

{% if not item.inventory.user and item.inventory.usable %}
{% endif %} {% if is_using %}
{% endif %}
{% if can_audit %} {% endif %}
{% endblock %}