{% extends 'allianceauth/base.html' %} {% load i18n %} {% load static %} {% block page_title %}{{ corporation }} {% trans "Statistics" %}{% endblock %} {% block content %}
{% endblock %} {% block extra_javascript %} {% include 'bundles/datatables-js.html' %} {% include 'bundles/moment-js.html' %} {% endblock %} {% block extra_css %} {% include 'bundles/datatables-css.html' %} {% endblock %} {% block extra_script %} $.fn.dataTable.moment = function (format, locale) { var types = $.fn.dataTable.ext.type; // Add type detection types.detect.unshift(function(d) { return moment(d, format, locale, true).isValid() ? 'moment-'+format : null; } ); // Add sorting method - use an integer for the sorting types.order[ 'moment-'+format+'-pre' ] = function(d) { return moment(d, format, locale, true).unix(); }; }; $(document).ready(function() { $.fn.dataTable.moment('YYYY-MMM-D, HH:mm'); $('#corp-members').DataTable(); }); {% endblock %}