{% extends "base.html" %} {% block title %}{{ station.name }} - SW Labs Management{% endblock %} {% block content %}

{{ station.name }}

Back to Lab
Station Information

Lab: {{ station.lab.name }}
Description: {{ station.description or 'No description available' }}
Status: {% if station.is_occupied %} Occupied {% else %} Available {% endif %}

{% if station.is_occupied %}
Occupied by: {% if occupied_by_user %} {{ occupied_by_user.username }} {% elif station.occupied_by %} User ID: {{ station.occupied_by }} {% else %} Unknown user {% endif %} {% if station.occupied_at %}
Since: {{ station.occupied_at.strftime('%Y-%m-%d %H:%M:%S') }} {% endif %}
{% endif %}
Station Statistics

{{ station.devices|length }}

Total Devices

{{ station.devices|selectattr("is_online", "equalto", true)|list|length }}

Online
{% if current_user.is_authenticated %}
Station Actions
{% if station.is_occupied %} {% if station.occupied_by == current_user.id or current_user.is_admin %}
{% else %}
Station is occupied by another user.
{% endif %} {% else %}
{% endif %}
{% endif %}

Devices

{% if station.devices %}
{% for device in station.devices %}
{{ device.name }} {{ device.device_type }}
IP Address:
{{ device.ip_address }}
Status:
{% if device.is_online %}Online{% else %}Offline{% endif %}
{% if device.os_info %}
Operating System:
{{ device.os_info }}
{% endif %} {% if device.special_apps %}
Special Applications:
{{ device.special_apps }}
{% endif %} {% if device.last_ping %}
Last Ping:
{{ device.last_ping.strftime('%Y-%m-%d %H:%M:%S') }}
{% endif %}
{% endfor %}
{% else %}
No devices found in this station. {% if current_user.is_authenticated and current_user.is_admin %} Add devices in the admin panel. {% endif %}
{% endif %}
Real-time Status

Loading device status...

{% endblock %} {% block scripts %} {% endblock %}