{% extends shell('app') %} {% block title %}{{ _('Calendar') }}{% endblock %} {% block content %} {% include "reservations/_calendar_style.html" %}

{{ _('Calendar') }}

{{ _('Each machine is shared: a booking takes the memory it needs and the rest stays free for others. Drag over a free space to book it; drag your own bookings or their edges to change them.') }}

{{ _('Book') }}
{% for n in range(1, nodes|length + 1) %} {% set s = now_by_node[n] %}

{{ nodes[n - 1] }} {% if not s.bookings %}{{ _('Free now') }} {% elif s.free <= 0 %}{{ _('Full') }} {% else %}{{ _('Shared') }}{% endif %} {{ _('%(used)s of %(total)s GB booked', used=s.used, total=s.total) }}

{% if s.bookings %} {% else %}

{{ _('%(gb)s GB free to book', gb=s.total) }}

{% endif %}
{% endfor %}
← {% if monday != this_monday %}{{ _('This week') }}{% endif %} → {% set sunday = days[-1].date %} {{ monday.day }} {{ months[monday.month - 1] }} – {{ sunday.day }} {{ months[sunday.month - 1] }} {{ sunday.year }}
{{ _('Free memory') }} {{ _('Yours') }} {% if approval != 'never' %}{{ _('Awaiting approval') }}{% endif %} {{ _('Width = memory it holds') }}
{% for day in days %}
{{ day.name }}
{{ day.date.day }}
{% for name in nodes %}{{ name }}{% endfor %}
{% endfor %} {% for day in days %}
{% for n in range(1, nodes|length + 1) %}
{% for b in day.lanes[n] %} {% set movable = b.edit and not b.started and not b.cut_start and not b.cut_end %}
{% if movable %}{% endif %} {{ b.r.owner_name }} {{ b.gb }} GB · {{ b.r.model }} {{ pretty(b.r.start, false) }}–{{ pretty(b.r.end, false) }} {% if b.edit and not b.cut_end %}{% endif %}
{% endfor %}
{% endfor %} {% if day.now is not none %}
{% endif %}
{% endfor %}
{% set back_here = request.full_path.rstrip('?') %} {% endblock %} {% block scripts %} {% endblock %}