<commit_before>{% extends 'base.html' %}
{% load i18n %}

{% block content %}

<h2> {% trans "Emails" %} </h2>

{% if error %}
    <p> {{ error }} </p>

{% elif not emails %}
    <p> {% trans "You don't have any emails :(" %}

{% else %}
    <table class="table table-hover table-centre table-bordered">
    <thead>
    <tr>
        <th>&nbsp;</th>
        <th>{% trans "From" %}</th>
        <th>{% trans "Subject" %}</th>
        <th>{% trans "Recieved" %}</th>
        <th>{% trans "Delete" %}</th>
    </tr>
    </thead>
    
    {% for email in emails.object_list %}
        <form action="/inbox/{{ email_address }}" method="POST">
            {% if email.read %}
                <tr>
            {% else %}
                <tr class="warning">
            {% endif %}


                <td><input type="checkbox" name="email"></td>
                <td> {{ email.sender }}</td>
                {% if email.subject %}
                    <td><a href="/inbox/{{ email.inbox }}/view/{{ email.id }}"> {{ email.subject }} </a></td>
                {% endif %}
                    <td><span title="{{email.recieved_date }}">{{ email.recieved_date|timesince }} {% trans "ago" %}</span></td>
                <td><a href="/inbox/{{ email.inbox }}/delete/{{ email.id }}">Delete</a></td>

            </tr>
        </form>
        

    {% endfor %}
    </table>
<commit_msg>I think blue would make it clearer what's been read<commit_after>{% extends 'base.html' %}
{% load i18n %}

{% block content %}

<h2> {% trans "Emails" %} </h2>

{% if error %}
    <p> {{ error }} </p>

{% elif not emails %}
    <p> {% trans "You don't have any emails :(" %}

{% else %}
    <table class="table table-hover table-centre table-bordered">
    <thead>
    <tr>
        <th>&nbsp;</th>
        <th>{% trans "From" %}</th>
        <th>{% trans "Subject" %}</th>
        <th>{% trans "Recieved" %}</th>
        <th>{% trans "Delete" %}</th>
    </tr>
    </thead>
    
    {% for email in emails.object_list %}
        <form action="/inbox/{{ email_address }}" method="POST">
            {% if email.read %}
                <tr>
            {% else %}
                <tr class="info">
            {% endif %}


                <td><input type="checkbox" name="email"></td>
                <td> {{ email.sender }}</td>
                {% if email.subject %}
                    <td><a href="/inbox/{{ email.inbox }}/view/{{ email.id }}"> {{ email.subject }} </a></td>
                {% endif %}
                    <td><span title="{{email.recieved_date }}">{{ email.recieved_date|timesince }} {% trans "ago" %}</span></td>
                <td><a href="/inbox/{{ email.inbox }}/delete/{{ email.id }}">Delete</a></td>

            </tr>
        </form>
        

    {% endfor %}
    </table>

{'fraction_non_alphanumeric': 0.21889650198341146, 'fraction_numerical': 0.00288496213487198, 'mean_word_length': 1.724950884086444, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, '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': '2482212', 'n_tokens_mistral': 983, 'n_tokens_neox': 882, 'n_words': 209}