<commit_before>{% extends "base_view_eventfield.html" %}

{% block title %}
CUBE role rota
{% endblock %}

{% block css %}
{{ block.super }}
<style type="text/css">
    body {font-family:Arial,Helvetica,sans-serif; }
    h1, h2 { margin: 1mm; }
    h1 { font-size: 16pt; }
    h2 { font-size: 14pt; }
    td.cell_day {
        text-align: right;
    }
    td.cell_day strong {
        font-weight: bold;
    }
    td.event_name {
        font-weight: bold;
        font-size: 14pt;
    }
    td.event_date {
        font-weight: bold;
        font-size: 14pt;
    }
    td.rl {
        text-align: right;
    }
    td.rer { 
        width: 5cm; height: 30px; 
        border-style: solid; border-width: 1px;
        border-color: gray;
    } 
    td.rel { 
        width: 5cm; height: 30px;
        border-style: solid; border-width: 1px;
        border-color: gray;
        text-align: right; 
    }

    @media print {
        /* Don't show header when printed */ 
        #eventfield_header {
            display: none;
        }
    }
</style>
{% endblock %}

{% block body %}
{{ block.super }}
<h1>Rota from {{ start_date|date:"D d/m/y" }} to {{ end_date|date:"D d/m/y" }}</h1>
<table border="0" cellspacing="0">

{% for showing in showings %}
    {% ifchanged %}<tr><td colspan="6"><h2>{{ showing.start|date:"F Y" }}</h2></td></tr>{% endifchanged %}
    <tr><td class="event_date" colspan="3">{{ showing.start|date:"D j H:i"|safe}}</td><td class="event_name" colspan="3">{{ showing.event.name }} </td></tr>
    {% for rota_entry in showing.rotaentry_set.all %}
        {% if forloop.counter|divisibleby:2 %}
            <td class="rer">   </td><td> {{ rota_entry.role.name }}-{{ rota_entry.rank }} </td></tr>
        {% else %}
            <tr><td colspan="2"></td><td class="rl"> {{ rota_entry.role.name }}-{{ rota_entry.rank }} </td><td class="rel"></td>
            {% if forloop.last %}
                <td colspan="2"></td></tr>
            {% endif %}
        {% endif %}
    {% endfor %}
{% endfor %}

</table>

{% endblock %}
<commit_msg>Simplify CSS and markup a bit<commit_after>{% extends "base_view_eventfield.html" %}

{% block title %}
CUBE role rota
{% endblock %}

{% block css %}
{{ block.super }}
<style type="text/css">
    body {font-family:Arial,Helvetica,sans-serif; }
    h1, h2 { margin: 1mm; }
    h1 { font-size: 16pt; }
    h2 { font-size: 14pt; }

    table {
        border-collapse: collapse;
    }

    tr.event_head {
        font-weight: bold;
        font-size: 13pt;
    }
    tr.event_head td {
        padding: 1em 0 0.1em 0;
    }


    .right {
        text-align: right;
    }

    td.rota_box {
        width: 5cm; height: 2em;
        border-style: solid; border-width: 1px;
        border-color: gray;
    }
    td {
        padding: 0.5em;
    }

    @media print {
        /* Don't show header when printed */
        #eventfield_header {
            display: none;
        }
    }
</style>
{% endblock %}

{% block body %}
{{ block.super }}
<h1>Rota from {{ start_date|date:"D d/m/y" }} to {{ end_date|date:"D d/m/y" }}</h1>
<table>

{% for showing in showings %}
    {% ifchanged %}<tr><td colspan="6"><h2>{{ showing.start|date:"F Y" }}</h2></td></tr>{% endifchanged %}
    <tr class="event_head"><td colspan="3">{{ showing.start|date:"D j H:i"}}</td><td colspan="3">{{ showing.event.name }} </td></tr>
    {% for rota_entry in showing.rotaentry_set.all %}
        {% if forloop.counter|divisibleby:2 %}
            <td class="rota_box">   </td><td> {{ rota_entry.role.name }}-{{ rota_entry.rank }} </td></tr>
        {% else %}
            <tr><td colspan="2"></td><td class="right"> {{ rota_entry.role.name }}-{{ rota_entry.rank }} </td><td class="rota_box"></td>
            {% if forloop.last %}
                <td colspan="2"></td></tr>
            {% endif %}
        {% endif %}
    {% endfor %}
{% endfor %}

</table>

{% endblock %}

{'fraction_non_alphanumeric': 0.1935318275154004, 'fraction_numerical': 0.01642710472279261, 'mean_word_length': 2.2367109634551494, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1068153', 'n_tokens_mistral': 1523, 'n_tokens_neox': 1376, 'n_words': 284}