{% extends "hunting/base-bs5.html" %} {% load i18n %} {% load humanize %} {% load evelinks %} {% load hunting %} {% load static %} {% block page_title %} {% translate "Target Details" %} - {{ target.character.character_name }} - {{ target.ship.name }} {% endblock page_title %} {% block content %}
{% include "hunting/target_details/locate_history.html" %}
{% translate "Notes" %}
{% for note in target.note_set.all %} {% endfor %}
{{ note.author }} - {{ note.created_at|naturaltime }} {{ note.text }}
{% translate "Killmails WIP" %}
{% for kill in killmails %}{% endfor %}
{% for alt in target.alts.all %}
{% translate "Alt" %} - {{ alt.character.character_name }}
{% translate "Location" %}: {% if alt.last_locatecharmsg %} {% if alt.last_locatecharmsg.solar_system.is_high_sec %} {{ alt.last_locatecharmsg.solar_system }} {{ alt.last_locatecharmsg.constellation }} {{ alt.last_locatecharmsg.region }} {% elif alt.last_locatecharmsg.solar_system.is_low_sec %} {{ alt.last_locatecharmsg.solar_system }} {{ alt.last_locatecharmsg.constellation }} {{ alt.last_locatecharmsg.region }} {% elif alt.last_locatecharmsg.solar_system.is_null_sec %} {{ alt.last_locatecharmsg.solar_system }} {{ alt.last_locatecharmsg.constellation }} {{ alt.last_locatecharmsg.region }} {% endif %} {% if alt.last_locatecharmsg.station %} {{ alt.last_locatecharmsg.station }} {% endif %} {% endif %}
{% translate "Timestamp" %}: {% if alt.last_locatecharmsg_oneday %} {{ alt.last_locatecharmsg.timestamp|naturaltime }} {% elif alt.last_locatecharmsg_onehour %} {{ alt.last_locatecharmsg.timestamp|naturaltime }} {% else %} {{ alt.last_locatecharmsg.timestamp|naturaltime }} {% endif %}
{% if alt.hard_cyno %} {% translate "Hard Cyno" %} {% endif %} {% if alt.pilot %} {% translate "Pilot" %} {% endif %} {% if alt.hard_cyno %} {% translate "Beacon Cyno" %} {% endif %} {% if alt.hard_cyno %} {% translate "Scout" %} {% endif %}
{% translate "Details" %}
{% endfor %}
{% endblock content %} {% block extra_javascript %} {% include "bundles/datatables-js-bs5.html" %} {% include "bundles/moment-js.html" %} {% endblock extra_javascript %} {% block extra_css %} {% include "bundles/datatables-css-bs5.html" %} {% endblock extra_css %} {% block extra_script %} $(document).ready(function(){ $('#table-locate-history').DataTable({ "ajax": { "url": "{% url 'hunting:locate_history' %}", "dataSrc": "locate_history", "data": { "character_id": {{ target.character.character_id }}, } }, columns: [ { data: "timestamp" }, { data: "solar_system__name" }, { data: 'constellation__name' }, { data: "region__name" }, { data: "station__name" }, ], "processing": true, "stateSave": true, "stateDuration": 0 } ); }); {% endblock extra_script %}