{% extends 'base.html.twig' %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block js_document_ready %} //defino variable para fecha actual var currentdate = new Date(); var datetime = "Extraído el: " + currentdate.getDate() + "/" + (currentdate.getMonth()+1) + "/" + currentdate.getFullYear() + " " + currentdate.getHours() + ":" + currentdate.getMinutes() + ":" + currentdate.getSeconds(); $('#datatable').dataTable({ createdRow: function(row, data, dataIndex) { if (data['estadoNotificacion'].indexOf('Prioritario')!=-1) { {# $(row).css({"background-color":"red"}); #} {# $(row).addClass('identidad-color lighten-5'); #} } }, filter : false, language: { "url": "//cdn.datatables.net/plug-ins/1.12.1/i18n/es-ES.json" }, aLengthMenu: "", bAutoWidth: false, "columns": [ { "data": "asunto", render: function(data, type, row, meta) { let string_compacto = ""; if(data != null) { string_compacto = data.length >= 30 ? data.substring(0, 30)+"..." : data; tooltiptext = data; } else {tooltiptext = "";} let string_final = '
Asunto | {#Etiquetas | #} {#Estado | #}Fecha - Hora Publicación | Acciones |
---|