{{ tool }}
{# Display tool status... #}
{% if tool.in_use %}
{% with tool.get_current_usage_event as current_usage_event %}
{% if current_usage_event.operator.id == customer.id %}
You are using this tool
{% else %}
{{ current_usage_event.operator }} is using this tool
{% endif %}
{% if current_usage_event.operator.id != current_usage_event.user.id %}
on behalf of {{ current_usage_event.user }}
{% endif %}
for the project named {{ current_usage_event.project.name }} since {{ current_usage_event.start }}.
{% endwith %}
{% elif tool.delayed_logoff_in_progress %}
{% with tool.get_delayed_logoff_usage_event as delayed_logoff_event %}
{{ delayed_logoff_event.operator }} has finished using the {{ tool }} but delayed logoff is in effect. The tool will be available at {{ delayed_logoff_event.end|time }}.
{% endwith %}
{% elif not tool.operational or tool.required_resource_is_unavailable %}
This tool is shut down.
{% elif tool.nonrequired_resource_is_unavailable %}
This tool is operational but not all resources are available.
{% else %}
This tool is operational and idle.
{% endif %}
{# Display any unavailable required resources... #}
{% for r in tool.unavailable_required_resources %}
{% endfor %}
{# Display any unavailable non-required resources... #}
{% for r in tool.unavailable_nonrequired_resources %}
{% endfor %}
{# Display all problems and shutdowns... #}
{% for t in tool.problems %}
{% endfor %}
{# Display all comments... #}
{% for c in tool.comments %}
{% endfor %}
{% if rendered_configuration_html %}
Configuration
{{ rendered_configuration_html }}
{% endif %}
{# Display tool control... #}
{# Spacer #}