{% extends "fatanalysis/base.html" %} {% load i18n %} {% block fatanalysis_content %}

{% trans "Fleet Activity Tracking" %}

{% trans "Corporation fleet participation analysis and longitudinal metrics" %}
{% trans "Recorded Periods" %} {% if perms.fatanalysis.manage_fatanalysis %} {% trans "Sync & Ingestion" %} {% endif %}
{% trans "Time Window:" %}
{% if periods %} {{ periods|length }} {% trans "monthly periods selected" %} {% else %} {% trans "No periods recorded" %} {% endif %}
{% trans "Total FATs" %}
{{ total_fats|default:0 }}
{% trans "Active Pilots" %}
{{ agg.active_pilots_count|default:0 }}
{% trans "Mains with at least one FAT" %}
{% trans "Corp Members" %}
{{ agg.member_count|default:0 }}
{% trans "Mains in Auth, alts not counted" %}
{% trans "Active Participation" %}
{% if agg.participation_pct is not None %}{{ agg.participation_pct }}%{% else %}–{% endif %}
{% blocktrans with active=agg.active_member_count members=agg.member_count %}{{ active }} of {{ members }} members{% endblocktrans %}
{% trans "Avg FATs / Month" %}
{{ agg.avg_fats_per_month|default_if_none:"–" }}
{% trans "Whole corp, per month in this window" %}
{% trans "Avg per Active Pilot" %}
{{ agg.avg_fats_per_active_pilot|default_if_none:"–" }}
{% trans "FATs per month, pilots who flew" %}
{% trans "Avg per Member" %}
{{ agg.avg_fats_per_member|default_if_none:"–" }}
{% trans "FATs per month, all members" %}
{% trans "Fleet Activity Progression Over Time" %} {{ periods|length }} {% trans "Periods" %}
{% if periods %}
{% else %}

{% trans "No period data available for this time window." %}

{% endif %}
{% trans "Ship Types Breakdown" %}
{% if ship_type_distribution or fat_type_distribution %}
{% else %}

{% trans "No ship type breakdown available." %}

{% endif %}
{% trans "FATs by Time" %} {% trans "EVE Time (UTC)" %}
{% if has_time_data %}
{% else %}

{% trans "No hourly time distribution data available for this time window." %}

{% endif %}
{% trans "FATs per Day" %} {% trans "Weekday" %}
{% if has_weekday_data %}
{% else %}

{% trans "No weekday distribution data available for this time window." %}

{% endif %}
{% trans "Pilot Participation Matrix" %} {{ pilots|length }} {% trans "Pilots" %}
{% for period in periods %} {% endfor %} {% for header in dynamic_headers %} {% endfor %} {% for pilot in pilots %} {% for val in pilot.period_values %} {% endfor %} {% for val in pilot.dynamic_values %} {% endfor %} {% endfor %}
{% trans "Pilot Name" %} {% trans "Main Character" %} {% trans "Type" %} {% trans "Total FATs" %} {% trans "Avg / Month" %}{{ period.year }}-{{ period.month|stringformat:"02d" }}{{ header }}
{{ pilot.character_name }} {{ pilot.main_character_name|default:"-" }} {% if pilot.is_main %} {% trans "Main" %} {% else %} {% trans "Alt" %} {% endif %} {% if pilot.total_fats > 0 %} {{ pilot.total_fats }} {% else %} 0 {% endif %} {{ pilot.avg_fats_per_month }} {% if val > 0 %} {{ val }} {% else %} - {% endif %} {% if val > 0 %} {{ val }} {% else %} - {% endif %}
{% endblock %} {% block extra_javascript %} {{ block.super }} {% endblock %}