view kallithea/templates/admin/my_account/my_account_watched.html @ 6905:ff5c4b26461a

templates: back out the DataTables paging disabling from c5bff92d5084 Lessons learned: * It was not sufficiently tested with gravatars. * It was not sufficiently tested on Chrome - Firefox seems to handle some big pages better. * It is unclear how big amounts of data we want to optimize for, but this regressed too much for some cases.
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 02 Oct 2017 23:44:49 +0200
parents c5bff92d5084
children fb9550946c26
line wrap: on
line source

<h4>${_('Repositories You are Watching')}</h4>

<div>
    <table class="table" id="datatable_list_wrap" width="100%"></table>
</div>

<script>
  var data = ${h.js(c.data)};
  var myDataTable = $("#datatable_list_wrap").DataTable({
        data: data.records,
        columns: [
            {data: "raw_name", "visible": false, searchable: false},
            {data: "name", "orderData": 1, title: ${h.jshtml(_('Name'))}},
            {data: "last_rev_raw", "visible": false, searchable: false},
            {data: "last_changeset", "orderData": 3, title: ${h.jshtml(_('Tip'))}, searchable: false},
        ],
        order: [[2, "asc"]],
        dom: '<"dataTables_left"f><"dataTables_right"ip>t',
        pageLength: 100
    });
</script>