<commit_before>{% extends "::base.html.twig" %}

{% block title %}AppBundle:Reports:Hourly{% endblock %}

{% block content %}
  <style>
{#    #reports_tasks tr td:first-child{width: 75%;}#}
  </style>
  <div class="nav hidden-print">
    <a href="{{ path('reports_index') }}" class="nav-link">Reports</a>
  </div>
  <div class="well">
    <h1>Tasks for {{ tasklist.name }}</h1>
  </div>
  <div class="table-responsive">
    <table class="table table-bordered table-condensed " id="reports_tasks">
      <thead>
        <tr>
          <th>Task</th>
          <th>CreatedAt</th>
          <th>CompletedAt</th>
        </tr>
      </thead>
      <tbody>
        {% for task in tasks %}
          <tr>
            <td>{{ task }}</td>
            <td>{{ task.createdAt|date('d/m/y')}}</td>
            <td>{{ task.completedAt|date('d/m/y') }}</td>
          </tr>
        {% endfor %}
      </tbody>
    </table>
  </div>
{% endblock %}<commit_msg>Datatable for tasks report with export buttons and ordering<commit_after>{% extends "::base.html.twig" %}

{% block title %}Tasks for {{ tasklist.name }}{% endblock %}

{% block stylesheets %}
  {{ parent() }}
  <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" />
  <style>
    table.dataTable tbody tr{background-color: transparent;}
    .table-hover > tbody > tr:hover{background-color: black;}
    button, input, optgroup, select, textarea{color: black;}
  </style>
{% endblock %}

{% block content %}
  <div class="nav hidden-print">
    <a href="{{ path('reports_index') }}" class="nav-link">Reports</a>
  </div>
  <div class="well">
    <h1>Tasks for {{ tasklist.name }}</h1>
  </div>
  <div class="table-responsive">
    <table class="table table-bordered table-condensed " id="reports_tasks">
      <thead>
        <tr>
          <th>Task</th>
          <th>CreatedAt</th>
          <th>CompletedAt</th>
        </tr>
      </thead>
      <tbody>
        {% for task in tasks %}
          <tr>
            <td>{{ task }}</td>
            <td>{{ task.createdAt|date('d/m/y')}}</td>
            <td data-order="{{task.completedAt|date('U') }}" >{{ task.completedAt|date('d/m/y') }}</td>
          </tr>
        {% endfor %}
      </tbody>
    </table>
  </div>
{% endblock %}
{% block javascripts %}
  {{ parent() }}
  <script type="text/javascript" src="//cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js" ></script>
  <script type="text/javascript" src="//cdn.datatables.net/buttons/1.5.6/js/dataTables.buttons.min.js" ></script>
  <script type="text/javascript" src="//cdn.datatables.net/buttons/1.5.6/js/buttons.flash.min.js" ></script>
  <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js" ></script>
  <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js" ></script>
  <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js" ></script>
  <script type="text/javascript" src="//cdn.datatables.net/buttons/1.5.6/js/buttons.html5.min.js" ></script>
  <script type="text/javascript" src="//cdn.datatables.net/buttons/1.5.6/js/buttons.print.min.js" ></script>
  <script>
    $(document).ready(function () {
      var tasksTable = $('#reports_tasks').DataTable({
        dom: 'Bfrtip',
        buttons: [
          'copy', 'csv', 'excel', 'pdf', 'print'
        ]
      });
    });
  </script>
{% endblock %}
{'fraction_non_alphanumeric': 0.21339518701072774, 'fraction_numerical': 0.011597564511452595, 'mean_word_length': 2.7704918032786887, 'pattern_counts': {'":': 2, '<': 90, '<?xml version=': 0, '>': 92, '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': '7553850', 'n_tokens_mistral': 1308, 'n_tokens_neox': 1225, 'n_words': 207}