{% extends "facebook/canvas" %} {% load listify %} {% load facebook %} {% load css_js %} {% block title %}The Lab{% endblock %} {% block body %}

The College of Creative Studies Computer Science Lab

Webcam

Updated {{ webcam.updated|dateify }}.

The Wall

{% with posts|length as count_ %}

{% if posts %}
Displaying {{ count_ }} {% ifnotequal count count_ %}of {{ count }} wall posts{% else %}wall post{{ count_|pluralize }}{% endifnotequal %}.
{% else %}No wall posts.{% endif %}

{% include "facebook/wall-posts" %} {% ifnotequal count count_ %}{% endifnotequal %}
{% endwith %}

People In The Lab

{% regroup logins by person as people %}

{% if not people %}No{% else %}{{ people|length }}{% endif %} pe{{ people|length|pluralize:"rson,ople" }} in the lab.

{% if not people %}There are no people logged in to computers in the lab.{% else %} {% for person_ in people %}
{% with person_.grouper as person %} {% with person.facebook_user_set.all as users %} {% with users|length_is:"1" as user_ %} {% with users.0 as user %} {% endwith %} {% endwith %} {% endwith %} {% endwith %}
{% if user_ %}{% else %}{% person_picture person q %}{% endif %}
{% if user_ %}{% else %}{{ person.full_name }}{% endif %}
{% endfor %} {% endif %}

People With Laptops Around CCS

{% if not laptops_count %}No{% else %}{{ laptops_count }}{% endif %} pe{{ laptops_count|pluralize:"rson,ople" }} with laptops around CCS.

{% if not laptops_count %}There are no people using laptops around CCS.{% else %} {% regroup laptops_users by user as users %} {% for user_ in users %}
{% with user_.grouper as user %} {% with user.person as person %} {% endwith %} {% endwith %}
{% endfor %} {% regroup laptops_people by person as people %} {% for person_ in people %}
{% with person_.grouper as person %} {% endwith %}
{% person_picture person q %}
{{ person.full_name }}
{% endfor %} {% endif %}

Computer Roles

{% for role in roles %}{{ role.full_name }}
{% endfor %}
{% with bookmarks|length as bookmarks_length %}

{% ifnotequal bookmarks_length bookmarks_count %}{{ bookmarks_length }} of {% endifnotequal %}{% if not bookmarks_count %}No{% else %}{{ bookmarks_count }}{% endif %} bookmark{{ bookmarks_count|pluralize }}.

{% if bookmarks_count %}
Th{{ bookmarks_count|pluralize:"is is,ese are" }} the lab's del.icio.us bookmark{{ bookmarks_count|pluralize }} tagged ccscslab:
{% endif %} {% include "facebook/person-bookmarks" %}
{% endwith %}
{% endblock %} {% block js %} {% css_js "js/webcam.js" %} {% include "facebook/wall-js" %} {% endblock %} {% block id %}$Id${% endblock %} {# vim: set filetype=htmldjango: #}