{% extends 'hostile/base.html' %} {% load i18n humanize %} {% block details %}
{% translate "Back to Alliances & Sov" %}

{{ alliance.alliance_name }} {% if alliance.ticker %} [{{ alliance.ticker }}] {% endif %}

{% translate "Add Member Corp" %} {% translate "Add Alt Corp" %} {% translate "Add Staging" %} {% translate "Add Structure" %} {% if perms.hostile.manage_intel or alliance.created_by == request.user %} {% translate "Edit Alliance" %} {% endif %} {% if perms.hostile.manage_intel %} {% translate "Delete Alliance" %} {% endif %}
{{ alliance.alliance_name }}

{{ alliance.alliance_name }}

{% if alliance.ticker %} [{{ alliance.ticker }}] {% endif %} {% if alliance.coalition %} {{ alliance.coalition }} {% endif %} {% if alliance.is_friendly %} {% translate "Friendly / Ignored" %} {% endif %} {% if alliance.is_coalition_leader %} {% translate "Coalition Leader" %} {% endif %} {% if alliance.is_alt_alliance %} {% translate "Alt Alliance" %} {% endif %} {% if alliance.sov_capital %} Capital: {{ alliance.sov_capital.name }} {% endif %} {% if alliance.primary_timezone == "EUTZ" %} EUTZ {% elif alliance.primary_timezone == "USTZ" %} USTZ {% elif alliance.primary_timezone == "AUTZ" %} AUTZ {% else %} Unknown TZ {% endif %}
{% if alliance.is_alt_alliance and alliance.main_alliance %} {% endif %}
ID: {{ alliance.alliance_id }} zKillboard Evewho Dotlan
{% if alliance.is_zkill_syncing %} {% translate "zKillboard Sync in Progress..." %} {% elif alliance.zkill_stats_updated_at %} {% translate "zKill Stats Synced:" %} {{ alliance.zkill_stats_updated_at|naturaltime }} {% else %} {% translate "zKill sync pending" %} {% endif %}
{% if perms.hostile.manage_intel and not alliance.is_zkill_syncing %} {% translate "Sync zKill Stats" %} {% endif %}
{% translate "Total Members" %}
{{ alliance.member_count|default:"0"|intcomma }}
{% if alliance.zkill_deltas.members %}
{% if alliance.zkill_deltas.members.pct >= 0 %}+{% endif %}{{ alliance.zkill_deltas.members.pct }}%
{% endif %}
{% translate "Sov Systems Held" %}
{{ alliance.systems_held_count|default:"0" }}
{% if alliance.zkill_deltas.systems_held %}
{% if alliance.zkill_deltas.systems_held.pct >= 0 %}+{% endif %}{{ alliance.zkill_deltas.systems_held.pct }}%
{% endif %}
{% translate "Active PvP (7d)" %}
{{ alliance.active_pilots_count|default:"0" }}
{% if alliance.zkill_deltas.pilots %}
{% if alliance.zkill_deltas.pilots.pct >= 0 %}+{% endif %}{{ alliance.zkill_deltas.pilots.pct }}%
{% endif %}
{% translate "7d Kills / Losses" %}
{{ alliance.weekly_kills_count|default:"0" }} / {{ alliance.weekly_losses_count|default:"0" }}
{% translate "Member Corps" %}
{{ alliance.member_corps_count|default:member_corporations.count }}
{% translate "Structures" %}
{{ structures.count }}
{% translate "Max Subcaps (3m)" %}
{{ alliance.max_subcap_form }}
{% if alliance.zkill_deltas.subcap %}
{% if alliance.zkill_deltas.subcap.pct >= 0 %}+{% endif %}{{ alliance.zkill_deltas.subcap.pct }}%
{% endif %}
{% translate "Max Capitals (3m)" %}
{{ alliance.max_cap_form }}
{% if alliance.zkill_deltas.cap %}
{% if alliance.zkill_deltas.cap.pct >= 0 %}+{% endif %}{{ alliance.zkill_deltas.cap.pct }}%
{% endif %}
{% translate "Max Supers (3m)" %}
{{ alliance.max_super_form }}
{% if alliance.zkill_deltas.super %}
{% if alliance.zkill_deltas.super.pct >= 0 %}+{% endif %}{{ alliance.zkill_deltas.super.pct }}%
{% endif %}
{% translate "Combat Activity Heatmap (Kills / Hour / Day of Week - 3-Month Rolling)" %}
{% translate "Distribution of kills per hour across days of the week from zKillboard activity data." %}
{% if heatmap_data.peak_day and heatmap_data.max_val > 0 %} Peak: {{ heatmap_data.peak_day }} {{ heatmap_data.peak_hour }}{% if heatmap_data.peak_tz %} ({{ heatmap_data.peak_tz }}){% endif %} {% endif %} {% if alliance.override_timezone %}{% endif %}Primary TZ: {{ alliance.primary_timezone }}
{% if heatmap_data.rows %}
{% for hour in heatmap_data.hours %} {% endfor %} {% for row in heatmap_data.rows %} {% for cell in row.cells %} {% endfor %} {% endfor %} {% for h_tot in heatmap_data.hour_totals %} {% endfor %}
{% translate "Day / Hour" %}{{ hour }}{% translate "Tot" %}
{{ row.day_name|slice:":3" }} {% if cell.count > 0 %}{{ cell.count }}{% else %}-{% endif %} {{ row.total }}
{% translate "Hour Tot" %}{{ h_tot }}{{ heatmap_data.grand_total }}
{% translate "Intensity:" %} 0 Low Med High Peak
{% translate "Total 3m Recorded Kills:" %} {{ heatmap_data.total_kills_3m }}
{% else %}
{% translate "No 3-month rolling zKillboard combat activity data recorded yet. Click 'Sync zKill Stats' to populate." %}
{% endif %}
{% translate "Structure Vulnerability & Timer Schedule (24h UTC Profile)" %}
{{ alliance.primary_timezone }} Timezone {% if hourly_schedule %} {% translate "Click any hour grouping to expand details" %} {% endif %}
{% if hourly_schedule %}
{% for h in hourly_schedule %}
{% endfor %}
{% for h in hourly_schedule %}
{{ h.hour_display }} {{ h.count }} Item{{ h.count|pluralize }}
{% for item in h.items %} {% endfor %}
{% translate "Item Type" %} {% translate "Name / Target" %} {% translate "Solar System" %} {% translate "Structure Type" %} {% translate "State / Stage" %} {% translate "Core Status" %} {% translate "Window / Time" %} {% translate "Actions" %}
{% if item.is_timer %} Active Timer {% else %} Structure {% endif %} {{ item.name }} {{ item.system_name }} {{ item.structure_type_name }} {% if item.state_raw == 'ANCHORING' %} {{ item.state }} {% elif 'REINFORCED' in item.state_raw %} {{ item.state }} {% else %} {{ item.state }} {% endif %} {% if item.core_status == 'FITTED' %} Core Fitted {% elif item.core_status == 'UNFITTED' %} No Core {% else %} - {% endif %} {{ item.details }} {% if perms.hostile.manage_intel and item.edit_url %} {% endif %}
{% endfor %}
{% elif alliance.sov_timer_distribution %}
{% for hour, count in alliance.sov_timer_distribution.items %}
{{ hour }}:00 UTC
{{ count }} structures
{% endfor %}
{% else %}
{% translate "No structure vulnerability windows or structure timers registered yet." %}
{% endif %}
{% translate "Member Corporations" %}
{% translate "Add Member Corp" %}
{% for corp in member_corporations %} {% empty %} {% endfor %}
{% translate "Corporation" %} {% translate "Ticker" %} {% translate "Members" %} {% translate "Fleet Capacity" %} {% translate "Active PvP (7d)" %} {% translate "7d Kills" %} {% translate "Actions" %}
{{ corp.corporation_name }} {{ corp.corporation_name }} {% if corp.is_executor or alliance.executor_corp_id == corp.corporation_id %} {% translate "Executor" %} {% endif %}
{% if corp.ticker %}[{{ corp.ticker }}]{% else %}-{% endif %} {{ corp.member_count|default:"0"|intcomma }} {% if corp.member_count_delta_percent %} {% if corp.member_count_delta_percent > 0 %} +{{ corp.member_count_delta_percent|floatformat:"-1" }}% {% elif corp.member_count_delta_percent < 0 %} {{ corp.member_count_delta_percent|floatformat:"-1" }}% {% endif %} {% endif %} {{ corp.max_subcap_form }} Sub / {{ corp.max_cap_form }} Cap / {{ corp.max_super_form }} Super {{ corp.active_pilots_count|default:"0" }} {{ corp.weekly_kills_count|default:"0" }} {% translate "Dossier" %}
{% translate "No direct member corporations registered for this alliance yet." %}
{% if affiliated_alt_corps %}
{% translate "Affiliated Alt / Holding / Cyno Corporations" %}
{% for corp in affiliated_alt_corps %} {% endfor %}
{% translate "Corporation" %} {% translate "Ticker" %} {% translate "Status" %} {% translate "Fleet Capacity" %} {% translate "Actions" %}
{{ corp.corporation_name }} {{ corp.corporation_name }} {% if corp.ticker %}[{{ corp.ticker }}]{% else %}-{% endif %} Alt Corp {{ corp.max_subcap_form }} Sub / {{ corp.max_cap_form }} Cap {% translate "Dossier" %}
{% endif %}
{% translate "Systems Held" %}
{{ sov_intel.total_systems_count }} {% if alliance.zkill_deltas.systems_held %} {% with d=alliance.zkill_deltas.systems_held %} {% if d.pct > 0 %} +{{ d.pct }}% {% elif d.pct < 0 %} {{ d.pct }}% {% endif %} {% endwith %} {% endif %}
{% translate "Regions Held" %}
{{ sov_intel.total_regions_count }}
{% translate "Average ADM" %}
{{ sov_intel.avg_adm_overall }} / 6.0
{% translate "Active Contests" %}
{{ sov_intel.active_contests_total }}
{% if sov_intel.regions %} {% for region in sov_intel.regions %}
{{ region.region_name }}
{{ region.systems_count }} {% translate "Systems" %}
{% translate "Avg ADM:" %} {{ region.avg_adm }} {% if region.active_contests_count > 0 %} {{ region.active_contests_count }} {% translate "Contests Active" %} {% endif %}
{% for sys in region.systems %} {% endfor %}
{% translate "Solar System" %} {% translate "Constellation" %} {% translate "Security" %} {% translate "ADM (Defense Multiplier)" %} {% translate "Vulnerability Window" %} {% translate "Status" %} {% translate "Contests / Timers" %}
{{ sys.solar_system_name }} {% if sys.is_capital %} {% translate "Capital" %} {% endif %}
{{ sys.constellation_name }} {{ sys.security_status|floatformat:1 }}
{{ sys.adm }}
{{ sys.vulnerability_window_display }} {% if sys.is_reinforced %} {% translate "Reinforced / In Contest" %} {% elif sys.is_vulnerable_now %} {% translate "Vulnerable Now" %} {% else %} {% translate "Guarded" %} {% endif %} {% if sys.timers %} {% for t in sys.timers %}
{{ t.get_timer_type_display }} {% if t.has_started %} Def: {{ t.defender_score_percent }}% / Att: {{ t.attacker_score_percent }}% {% else %} {% translate "Starts in" %} {{ t.timer_datetime|naturaltime }} {% endif %}
{% endfor %} {% else %} - {% endif %}
{% endfor %} {% else %}
{% translate "No Sovereignty Claims Found" %}

{% translate "This alliance does not currently hold sovereignty over any solar systems, or sovereignty data synchronization has not completed yet." %}

{% endif %}
{% translate "Staging Systems & Forward Operating Hubs" %}
{% translate "Add Staging" %}
{% for st in staging_systems %} {% empty %} {% endfor %}
{% translate "Solar System" %} {% translate "Security / Region" %} {% translate "Type" %} {% translate "Staged Capacity" %} {% translate "Structure Base" %} {% translate "Notes" %} {% translate "Actions" %}
{{ st.solar_system.name }} {% if st.is_primary %}{% translate "Primary" %}{% endif %} {{ st.solar_system.security_status|floatformat:1 }} {{ st.solar_system.constellation.region.name }} {{ st.get_staging_type_display }} {{ st.max_subcap_form }} Sub / {{ st.max_cap_form }} Cap / {{ st.max_super_form }} Super {{ st.structure.name|default:"-" }} {{ st.notes|default:"-" }}
{% if perms.hostile.manage_intel or st.created_by == request.user %} {% endif %} {% if perms.hostile.manage_intel %} {% endif %}
{% translate "No staging systems recorded for this alliance yet." %}
{% translate "Fleet Doctrines & Ship Compositions" %}
{% translate "Add Doctrine" %}
{% for doc in doctrines %}
{{ doc.name }}
{{ doc.primary_role|default:"Combat" }} {% if perms.hostile.manage_intel or doc.created_by == request.user %} {% endif %} {% if perms.hostile.manage_intel %} {% endif %}

{{ doc.description|default:"No doctrine notes provided." }}

Ideal Formup: {{ doc.ideal_formup_count }} pilots
{% if doc.example_fits.all %}
{% translate "Fittings / Ship Types:" %}
{% for fit in doc.example_fits.all %} {{ fit.ship_type.name }} {% endfor %}
{% endif %}
{% empty %}
{% translate "No doctrines registered for this alliance yet." %}
{% endfor %}
{% if timers %}
{% translate "Active Structure Timers" %}
{{ timers.count }} Timers
{% for timer in timers %} {% endfor %}
{% translate "Stage / Type" %} {% translate "Solar System" %} {% translate "Structure" %} {% translate "Exit Time (UTC)" %} {% translate "Status" %} {% translate "Actions" %}
{{ timer.get_timer_type_display }} {{ timer.solar_system.name }} {{ timer.structure.name|default:timer.target_name }} {{ timer.timer_datetime|date:"Y-m-d H:i" }} UTC {% if timer.is_expired %} {% translate "Expired" %} {% else %} {% translate "Active" %} {% endif %}
{% if perms.hostile.manage_intel or timer.created_by == request.user %} {% endif %} {% if perms.hostile.manage_intel %} {% endif %}
{% endif %}
{% translate "Known Upwell Structures & Starbases" %}
{% translate "Add Structure" %}
{% for struct in structures %} {% empty %} {% endfor %}
{% translate "Structure Name" %} {% translate "Type" %} {% translate "Solar System" %} {% translate "State" %} {% translate "Core Status" %} {% translate "Vuln Window" %} {% translate "Actions" %}
{{ struct.name }} {{ struct.structure_type.name|default:"Structure" }} {{ struct.solar_system.name }} {% if struct.state == 'ANCHORING' %} Anchoring {% elif struct.state == 'ARMOR_REINFORCED' or struct.state == 'HULL_REINFORCED' or struct.state == 'ARMOR' or struct.state == 'HULL' %} Reinforced {% else %} {{ struct.get_state_display }} {% endif %} {% if struct.core_status == 'FITTED' %} Core Fitted {% elif struct.core_status == 'UNFITTED' %} No Core {% else %} Unknown {% endif %} {{ struct.vulnerability_window|default:"-" }} {% translate "Calc" %} {% if perms.hostile.manage_intel or struct.created_by == request.user %} {% translate "Edit" %} {% endif %} {% if perms.hostile.manage_intel %} {% endif %}
{% translate "No structures recorded for this alliance yet." %}
{% translate "Hostile Pilot Dossiers & Key Personnel" %}
{% translate "Add Pilot Dossier" %}
{% for pilot in pilots %} {% empty %} {% endfor %}
{% translate "Pilot" %} {% translate "Corporation" %} {% translate "Tactical Roles" %} {% translate "Last Seen System" %} {% translate "Notes" %} {% translate "Actions" %}
{{ pilot.character_name }} {{ pilot.character_name }}
{{ pilot.display_corporation_name|default:"-" }}
{% if pilot.is_fc %} {% if pilot.fc_level == "HIGH" %} FC (High{% if pilot.fc_score %} {{ pilot.fc_score }}{% endif %}) {% elif pilot.fc_level == "MEDIUM" %} FC (Med{% if pilot.fc_score %} {{ pilot.fc_score }}{% endif %}) {% elif pilot.fc_level == "LOW" %} FC (Low{% if pilot.fc_score %} {{ pilot.fc_score }}{% endif %}) {% elif pilot.fc_level == "CANDIDATE" %} FC Candidate {% else %} FC {% endif %} {% endif %} {% if pilot.is_awox %}AWOX{% if pilot.awox_count %} ({{ pilot.awox_count }}){% endif %}{% endif %} {% if pilot.is_alliance_awox %}Alliance AWOX{% if pilot.alliance_awox_count %} ({{ pilot.alliance_awox_count }}){% endif %}{% endif %} {% if pilot.is_faction_awox %}Faction AWOX{% if pilot.faction_awox_count %} ({{ pilot.faction_awox_count }}){% endif %}{% endif %} {% if pilot.is_bait %}Bait{% if pilot.bait_level %} {{ pilot.bait_level|title }}{% endif %}{% if pilot.bait_count %} ({{ pilot.bait_count }}){% endif %}{% endif %} {% if pilot.is_ganker %}Ganker{% if pilot.ganker_count %} ({{ pilot.ganker_count }}){% endif %}{% endif %} {% if pilot.is_titan_pilot %}Titan{% if pilot.titan_count %} ({{ pilot.titan_count }}){% endif %}{% endif %} {% if pilot.is_super_pilot %}Super{% if pilot.super_count %} ({{ pilot.super_count }}){% endif %}{% endif %} {% if pilot.is_dread_pilot %}Dread{% endif %} {% if pilot.is_fax_pilot %}FAX{% endif %} {% if pilot.is_capital_pilot and not pilot.is_dread_pilot and not pilot.is_fax_pilot and not pilot.is_super_pilot and not pilot.is_titan_pilot %}Capital{% if pilot.capital_count %} ({{ pilot.capital_count }}){% endif %}{% endif %} {% if pilot.is_cyno_alt %}Cyno{% if pilot.cyno_count %} ({{ pilot.cyno_count }}){% endif %}{% endif %} {% if pilot.is_blops_pilot %}Blops{% if pilot.blops_count %} ({{ pilot.blops_count }}){% endif %}{% endif %} {% if pilot.is_logi_pilot %}Logi{% if pilot.logi_count %} ({{ pilot.logi_count }}){% endif %}{% endif %} {% if pilot.is_rookie %}Rookie{% endif %} {% if pilot.is_alt %} Alt{% if pilot.main_character %} of {{ pilot.main_character.character_name }}{% endif %} {% elif pilot.is_main %} Main ({{ pilot.known_alts.count }} Alt{{ pilot.known_alts.count|pluralize }}) {% elif pilot.is_out_of_corp %} Alt {% endif %} {% if not pilot.is_fc and not pilot.is_titan_pilot and not pilot.is_super_pilot and not pilot.is_dread_pilot and not pilot.is_fax_pilot and not pilot.is_capital_pilot and not pilot.is_cyno_alt and not pilot.is_blops_pilot and not pilot.is_out_of_corp and not pilot.is_alt and not pilot.is_awox and not pilot.is_alliance_awox and not pilot.is_faction_awox and not pilot.is_bait and not pilot.is_ganker and not pilot.is_logi_pilot and not pilot.is_rookie %} Combat Pilot {% endif %}
{{ pilot.last_seen_system.name|default:"-" }} {{ pilot.notes|default:"-" }}
{% if perms.hostile.manage_intel or pilot.created_by == request.user %} {% endif %} {% if perms.hostile.manage_intel %} {% endif %}
{% translate "No pilot dossiers recorded for this alliance yet." %}
{% if alt_alliances or coalition_alliances %}
{% if alt_alliances %}
{% translate "Alt / Holding Alliances" %}
{% for a in alt_alliances %} {% endfor %}
{% translate "Alliance" %} {% translate "Ticker" %} {% translate "Active PvP (7d)" %} {% translate "Fleet Capacity" %} {% translate "Actions" %}
{{ a.alliance_name }} {{ a.alliance_name }} {% if a.ticker %}[{{ a.ticker }}]{% else %}-{% endif %} {{ a.active_pilots_count|default:"0" }} {{ a.max_subcap_form }} Sub / {{ a.max_cap_form }} Cap {% translate "Dossier" %}
{% endif %} {% if coalition_alliances %}
{% translate "Coalition Member Alliances (" %}{{ alliance.coalition }}{% translate ")" %}
{% for a in coalition_alliances %} {% endfor %}
{% translate "Alliance" %} {% translate "Ticker" %} {% translate "Leader Status" %} {% translate "Active PvP (7d)" %} {% translate "Actions" %}
{{ a.alliance_name }} {{ a.alliance_name }} {% if a.ticker %}[{{ a.ticker }}]{% else %}-{% endif %} {% if a.is_coalition_leader %} Leader {% else %} Member {% endif %} {{ a.active_pilots_count|default:"0" }} {% translate "Dossier" %}
{% endif %}
{% endif %}
{% endblock %}