{% for allocation in allocations %} {% if session['hide_dhcp'] and allocation.is_dhcp %} {% else %} {{allocation.ipv4}} {{allocation.hostname}} {{allocation.hostname_full}} {{allocation.description}} {% if Inventory.query.filter_by(id=allocation.device_id).first() %} {% else %} N/A {% endif %} {% if allocation.is_dhcp %}DHCP{% endif %}{% if allocation.is_gateway %}GATEWAY{% endif %}{% if allocation.is_decom %}DECOM{% endif %} {% if current_user.is_reado == False %} {% if allocation.is_used %} {% if allocation.is_decom %} Undecom {% else %} Decom {% endif %} {% else %} {% endif %} {% endif %} {% endif %} {% endfor %}