{% extends 'afat/base.html' %} {% load evelinks %} {% load static %} {% load i18n %} {% block page_title %}{{ alliance }} {% translate "Statistics" %}{% endblock %} {% block afat_header %}
{% include 'afat/partials/menu.html' %}

{{ alliance }} {% translate "Statistics" %}

{% endblock %} {% block afat_body %} {% include 'afat/partials/ally_stat/month_navigation.html' %} {% include 'afat/partials/ally_stat/tabs_navigation.html' %}
{% include 'afat/partials/ally_stat/tabs/graphs.html' %} {% include 'afat/partials/ally_stat/tabs/corporations.html' %}
{% 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'); $('#member-corps').DataTable(); }); {% endblock %}