{% extends "base.html" %}
{% block title %}Who's online @ {{ entry.name }} — {{ config.BBS_NAME }}{% endblock %}

{% block content %}
<div class="container my-4">
    <div class="d-flex justify-content-between align-items-center mb-3">
        <div>
            <h2 class="mb-1">
                <i class="bi bi-people"></i> {{ entry.name }}
            </h2>
            <small class="text-muted">
                <code>{{ entry.hostname }}</code>
                {% if entry.ip_address %} ({{ entry.ip_address }}){% endif %}
            </small>
        </div>
        <div>
            <a href="{{ url_for('imsg.directory') }}" class="btn btn-secondary btn-sm">
                <i class="bi bi-arrow-left"></i> Directory
            </a>
            <a href="{{ url_for('imsg.send', host=entry.hostname) }}"
               class="btn btn-success btn-sm">
                <i class="bi bi-send"></i> Send IM
            </a>
        </div>
    </div>

    {% if text %}
    <pre class="ansi-body"
         style="background:#0a0a0a; border:1px solid #00ff00; padding:16px;">{{ text }}</pre>
    {% else %}
    <div class="alert alert-warning">
        No reply from <code>{{ entry.hostname }}</code>:11 (UDP). The remote
        BBS may not be online, may not run a SYSTAT/Finger UDP service,
        or may be blocking inbound UDP at the firewall.
    </div>
    {% endif %}
</div>
{% endblock %}
