<commit_before>{% extends "telephony/layout.html" %}

{% block body %}
<div class="container">
    <h2 class="pull-left">{{ _('Calls') }}</h2>

    <table class='table table-bordered table-hover'>
        <thead>
            <tr>
                <th>{{ _('UUID') }}</th>
                <th>{{ _('Start') }}</th>
                <th>{{ _('End') }}</th>
                <th>{{ _('From') }}</th>
                <th>{{ _('To') }}</th>
            </tr>
        </thead>
        {% for call in calls %}
        <tr>
            <td>{{ call.call_uuid }}</td>
            <td>{{ call.start_time }}</td>
            <td>{{ call.end_time }}</td>
            <td><a href="{{ url_for('telephony.phonenumber', phonenumber_id=call.from_phonenumber.id) }}">{{ call.from_phonenumber }}</a></td>
            <td><a href="{{ url_for('telephony.phonenumber', phonenumber_id=call.to_phonenumber.id) }}">{{ call.to_phonenumber }}</a></td>
        </tr>
        {% endfor %}
    </table><commit_msg>Fixed problematic linking in calls template<commit_after>{% extends "telephony/layout.html" %}

{% block body %}
<div class="container">
    <h2 class="pull-left">{{ _('Calls') }}</h2>

    <table class='table table-bordered table-hover'>
        <thead>
            <tr>
                <th>{{ _('UUID') }}</th>
                <th>{{ _('Start') }}</th>
                <th>{{ _('End') }}</th>
                <th>{{ _('From') }}</th>
                <th>{{ _('To') }}</th>
            </tr>
        </thead>
        {% for call in calls %}
        <tr>
            <td>{{ call.call_uuid }}</td>
            <td>{{ call.start_time }}</td>
            <td>{{ call.end_time }}</td>
            <td>{{ call.from_phonenumber }}</td>
            <td>{{ call.to_phonenumber }}</td>
	    #todo: fix linking below
            #<td><a href="{{ url_for('telephony.phonenumber', phonenumber_id=call.from_phonenumber.id) }}">{{ call.from_phonenumber }}</a></td>
            #<td><a href="{{ url_for('telephony.phonenumber', phonenumber_id=call.to_phonenumber.id) }}">{{ call.to_phonenumber }}</a></td>
        </tr>
        {% endfor %}
    </table>
{'fraction_non_alphanumeric': 0.22568460812086874, 'fraction_numerical': 0.0018885741265344666, 'mean_word_length': 1.9887165021156559, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '5699084', 'n_tokens_mistral': 754, 'n_tokens_neox': 703, 'n_words': 140}