{% extends "facebook/canvas" %} {% load facebook %} {% block title %}Computers: {{ computer.sword }}{% endblock %} {% block body %}
{% computer_picture computer n %}
  • Send {{ computer.sword }} a Message
  • Poke {{ computer.sword }}!
{% if computer.online %}
{{ computer.sword }} is online.
{% endif %}

People Logged In

{% with computer.login_set.all as logins %}

{% if computer.online %}{% if logins %}{{ logins|length }}{% else %}No{% endif %} {{ logins|length|pluralize:"person,people" }}{% else %}No people{% endif %} logged in.

{% if logins %}
{% for login in logins %} {% include "facebook/computer-login" %} {% endfor %}
{% else %} There are no people logged in to {{ computer.sword }}. {% endif %}
{% endwith %}
{% with computer.roles.all as roles %}
{% with computer.operating_system as operating_system %} {% endwith %}
DNS Name:
{{ computer.full_name }}
OS:
{% if operating_system.url %}{{ operating_system }}{% else %}{{ operating_system }}{% endif %}
IP Address:
{{ computer.ip_address }}
Processor:
{{ computer.processor }}
Roles:
{% for role in roles %}{{ role.full_name }}
{% endfor %}

MOTD

{% if computer.motd %}{{ computer.motd|target_blankify|safe }}{% else %}{{ computer.sword }} doesn't have a message of the day file.{% endif %}
{% for role in roles %}

Useful information about this?

{% endfor %} {% endwith %}
{% endblock %} {% block js %} {% endblock %} {% block id %}$Id${% endblock %} {# vim: set filetype=htmldjango: #}