{% extends 'allianceauth/base-bs5.html' %} {% load i18n %} {% load static %} {% load humanize %} {% block content %} {% if fracks %}

Moon Usage Stats


Filtered Stats

Moons Matching Filter

Filtered System Count

Filtered Constelation Count

Filtered Region Count


{% for frack in fracks %} {% empty %} {% endfor %}
Moon Date Details Value Mined Ratio System Constellation Region Corporation
{{ frack.moon }} {{ frack.end_date }} {{ frack.ores }} {{ frack.total_value|floatformat:0|intcomma }} {{ frack.mined_value|floatformat:0|intcomma }} {{ frack.mined_ratio|floatformat:0 }} {{ frack.system }} {{ frack.constellation }} {{ frack.region }} {{ frack.corporation }} {{ frack.rank }}
{% else %}
{% trans "No Fracks Available" %}
{% endif %} {% endblock %} {% block extra_javascript %} {% include 'bundles/datatables-js-bs5.html' %} {% endblock %} {% block extra_script %} function numberWithCommas(x) { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } let moon_col = 0; let sys_col = 6; let const_col = 7; let region_col = 8; $(document).ready(function() { $('#table-structs').DataTable({ filterDropDown: { columns: [ { idx: 10 }, { idx: 9 }, { idx: region_col }, { idx: const_col }, { idx: sys_col } ], }, columnDefs: [ { "sortable": false, "targets": [2] }, { "visible": false, "targets": [10, 9, 8, 7, 6] } ], order: [ [2, "desc"] ], paging: false, responsive: true, pageLength: -1, footerCallback: function ( row, data, start, end, display ) { var api = this.api(), data; var pageTotal = api .column(2, { page: 'current'}) .data() .reduce( function (a, b) { return Number(a) + Number(b); }, 0 ); pageTotal_req = api .column(4, { page: 'current'}) .data() .reduce( function (a, b) { return Number(a) + Number(b); }, 0 ); var total_count = api.column(moon_col, { page: 'current'}).data().unique().count(); var systems = api.column(sys_col, { page: 'current'}).data().unique().count(); var constel = api.column(const_col, { page: 'current'}).data().unique().count(); var region = api.column(region_col, { page: 'current'}).data().unique().count(); $('#total_fuel').html(numberWithCommas(pageTotal)) $('#total_fuel_90d').html(numberWithCommas(pageTotal_req)) $('#total_str').html(numberWithCommas(total_count)) $('#total_system').html(numberWithCommas(systems)) $('#total_const').html(numberWithCommas(constel)) $('#total_region').html(numberWithCommas(region)) } }); }); {% endblock %} {% block extra_css %} {% include 'bundles/datatables-css-bs5.html' %} {% endblock %}