<commit_before>{% extends 'layout.twig' %}
{% set title = ('Video club'|trans ~ ': ' ~ 'schedule'|trans) | trans %}

{% block content %}

    <div id="iptv_list">
        <div class="row">
                <div class="box">
                    <div class="box-content">
                        <div class="box-content no-padding">
                            {% if app['allTasks'] %}
                                <div class="dataTables_processing"></div>
                                <table class="table  table-hover table-datatable" id="datatable-1">
                                    <thead>
                                        <tr>
                                            <th data-filter="task_added">{{ 'Date'|trans }}</th>
                                            <th data-filter="name">{{ 'Title'|trans }}</th>
                                            <th data-filter="o_name">{{ 'Original title'|trans }}</th>
                                            <th data-filter="time">{{ 'Length, min'|trans }}</th>
                                            <th data-filter="tasks">{{ 'Status'|trans }}</th>
                                            <th data-filter="year">{{ 'Year'|trans }}</th>
                                            <th data-filter="operations">{{ 'Operations'|trans }}</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <!-- Start: list_row -->
                                        {% for item in app.allTasks %}
                                            <tr data-videoid="{{ item.video_id }}">
                                                <td data-filter="task_added">{{ item.task_added|date('Y-m-d') }}</td>
                                                <td data-filter="name"><a href="video-club/edit-video?id={{ item.video_id }}" data-fieldname="name">{{ item.name }}</a></td>
                                                <td data-filter="o_name">{{ item.o_name }}</td>
                                                <td data-filter="time">{{ item.time }}</td>
                                                <td data-filter="tasks">
                                                 №{{ item['id'] }} ({{ 'scheduled'|trans }} {{ 'on'|trans }} {{ item['date_on']|date('d-m-Y') }})
                                                </td>
                                                <td data-filter="year">{{ item.year }}</td>
                                                <td data-filter="operations" class="action-menu">
                                                    <div class="col-xs-3 col-sm-8">
                                                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">                    
                                                            <i class="pull-right fa fa-cog"></i>
                                                        </a>
                                                        <ul class="dropdown-menu pull-right">
                                                            <li>
                                                                <a class="main_ajax" href="{{ app.request.baseUrl }}/{{ app.controller_alias }}/enable-video" data-videoid="{{ item.video_id }}" data-taskid="{{ item.task_id }}" data-video_on_date="{{ date()|date("y-m-d") }}" data-curr_on_date="{{ item['date_on']|date('d-m-Y') }}">
                                                                    <span>{{ 'Edit'|trans }}</span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a class="main_ajax" href="{{ app.request.baseUrl }}/{{ app.controller_alias }}/enable-video" data-videoid="{{ item.video_id }}" data-video_on_date="{{ date()|date("y-m-d") }}">
                                                                    <span>{{ 'Publish now'|trans }}</span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a class="main_ajax" href="{{ app.request.baseUrl }}/{{ app.controller_alias }}/remove-tasks" data-taskid="{{ item.task_id }}">
                                                                    <span>{{ 'Remove schedule'|trans }}</span>
                                                                </a>
                                                            </li>
                                                        </ul>
                                                    </div>
                                                </td>
                                            </tr>
                                        {% endfor %}
                                        <!-- End: list_row -->
                                    </tbody>
                                </table>
                            {% else %}
                                <h3>{{ 'No scheduled publications'|trans }}</h3>
                            {% endif %}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" defer>
	
        function TestTable1() {
            $('#datatable-1').dataTable( {
                "language": {
                    "url": "{{ app.datatable_lang_file }}"
                },
                "paging":   false,
                "ordering": true,
                "info":     false,
                "scrollCollapse": true,
                "bFilter": true,
                "bPaginate": true,
                "aoColumnDefs": [
                    { "searchable": false },
                    { "targets": [ 3 ], "visible": false},
                    { "targets": [ -1 , 6], "orderable": false}
                ]
            }).prev('.dataTables_processing').hide('');
        }
	
        function yelp() {<commit_msg>Preloader for DataTables (issue #4623)<commit_after>{% extends 'layout.twig' %}
{% set title = ('Video club'|trans ~ ': ' ~ 'schedule'|trans) | trans %}

{% block content %}

    <div id="iptv_list">
        <div class="row">
                <div class="box">
                    <div class="box-content">
                        <div class="box-content no-padding">
                            {% if app['allTasks'] %}
                                <div class="dataTables_processing"></div>
                                <table class="table  table-hover table-datatable" id="datatable-1">
                                    <thead>
                                        <tr>
                                            <th data-filter="task_added">{{ 'Date'|trans }}</th>
                                            <th data-filter="name">{{ 'Title'|trans }}</th>
                                            <th data-filter="o_name">{{ 'Original title'|trans }}</th>
                                            <th data-filter="time">{{ 'Length, min'|trans }}</th>
                                            <th data-filter="tasks">{{ 'Status'|trans }}</th>
                                            <th data-filter="year">{{ 'Year'|trans }}</th>
                                            <th data-filter="operations">{{ 'Operations'|trans }}</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <!-- Start: list_row -->
                                        {% for item in app.allTasks %}
                                            <tr data-videoid="{{ item.video_id }}">
                                                <td data-filter="task_added">{{ item.task_added|date('Y-m-d') }}</td>
                                                <td data-filter="name"><a href="video-club/edit-video?id={{ item.video_id }}" data-fieldname="name">{{ item.name }}</a></td>
                                                <td data-filter="o_name">{{ item.o_name }}</td>
                                                <td data-filter="time">{{ item.time }}</td>
                                                <td data-filter="tasks">
                                                 №{{ item['id'] }} ({{ 'scheduled'|trans }} {{ 'on'|trans }} {{ item['date_on']|date('d-m-Y') }})
                                                </td>
                                                <td data-filter="year">{{ item.year }}</td>
                                                <td data-filter="operations" class="action-menu">
                                                    <div class="col-xs-3 col-sm-8">
                                                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">                    
                                                            <i class="pull-right fa fa-cog"></i>
                                                        </a>
                                                        <ul class="dropdown-menu pull-right">
                                                            <li>
                                                                <a class="main_ajax" href="{{ app.request.baseUrl }}/{{ app.controller_alias }}/enable-video" data-videoid="{{ item.video_id }}" data-taskid="{{ item.task_id }}" data-video_on_date="{{ date()|date("y-m-d") }}" data-curr_on_date="{{ item['date_on']|date('d-m-Y') }}">
                                                                    <span>{{ 'Edit'|trans }}</span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a class="main_ajax" href="{{ app.request.baseUrl }}/{{ app.controller_alias }}/enable-video" data-videoid="{{ item.video_id }}" data-video_on_date="{{ date()|date("y-m-d") }}">
                                                                    <span>{{ 'Publish now'|trans }}</span>
                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a class="main_ajax" href="{{ app.request.baseUrl }}/{{ app.controller_alias }}/remove-tasks" data-taskid="{{ item.task_id }}">
                                                                    <span>{{ 'Remove schedule'|trans }}</span>
                                                                </a>
                                                            </li>
                                                        </ul>
                                                    </div>
                                                </td>
                                            </tr>
                                        {% endfor %}
                                        <!-- End: list_row -->
                                    </tbody>
                                </table>
                            {% else %}
                                <h3>{{ 'No scheduled publications'|trans }}</h3>
                            {% endif %}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    <script type="text/javascript" defer>
	
        function TestTable1() {
            $('#datatable-1').dataTable( {
                "language": {
                    "url": "{{ app.datatable_lang_file }}"
                },
                "paging":   false,
                "ordering": true,
                "info":     false,
                "scrollCollapse": true,
                "bFilter": true,
                "bPaginate": true,
                "aoColumnDefs": [
                    { "searchable": false },
                    { "targets": [ 3 ], "visible": false},
                    { "targets": [ -1 , 6], "orderable": false}
                ]
            }).prev('.dataTables_processing').hide('');
        }
	
        function yelp() {
{'fraction_non_alphanumeric': 0.13322683706070287, 'fraction_numerical': 0.0019169329073482429, 'mean_word_length': 0.6804455777747953, 'pattern_counts': {'":': 28, '<': 170, '<?xml version=': 0, '>': 170, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 194, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3308671', 'n_tokens_mistral': 2512, 'n_tokens_neox': 2393, 'n_words': 471}