{% for tool in tool_summary %} {% if tool.in_use %} {# Output the operator & user of the tool. If the person viewing this page is a staff member, then also allow them to force the operator off the tool. #} {% else %} {% endif %} {% endfor %}
Tool User In use since...
{{ tool.name }} {# Output the state of the tool, summarizing any associated problems. #} {% if tool.in_use %} {% endif %} {% if tool.delayed_logoff_in_progress %} {% endif %} {% if tool.scheduled_outage %} {% endif %} {% if tool.problematic %} {% endif %} {% if tool.operational == False %} {% endif %} {% if tool.required_resource_is_unavailable %} {% endif %} {% if tool.nonrequired_resource_is_unavailable %} {% endif %} {% if user.is_staff %} {% endif %} {{ tool.user }} {{ tool.in_use_since|date:"l @ g:i A" }}