{% extends "allianceauth/base.html" %} {% load static %} {% load i18n %} {% block page_title %}{{ group }} {% translate "Audit Log" %}{% endblock page_title %} {% block content %}

{% include 'groupmanagement/menu.html' %}
{{ group }} - {% translate "Audit Log" %}

{% translate "Back" %}

{% if entries %}
{% for entry in entries %} {% if entry.request_type is None %} {% else %} {% endif %} {% endfor %}
{% translate "Date/Time" %} {% translate "Requestor" %} {% translate "Character" %} {% translate "Corporation" %} {% translate "Type" %} {% translate "Action" %} {% translate "Actor" %}
{{ entry.date|date:"Y-M-d, H:i" }} {{ entry.requestor }} {{ entry.req_char }} {{ entry.req_char.corporation_name }} {{ entry.type_to_str }}{% translate "Removed" %}{{ entry.action_to_str }}{{ entry.request_actor }}

{% translate "All times displayed are EVE/UTC." %}

{% else %}

{% translate "No entries found for this group." %}
{% endif %}
{% endblock %} {% block extra_javascript %} {% include 'bundles/datatables-js.html' %} {% include 'bundles/moment-js.html' with locale=True %} {% include 'bundles/filterdropdown-js.html' %} {% endblock %} {% block extra_css %} {% include 'bundles/datatables-css.html' %} {% endblock %} {% block extra_script %} $.fn.dataTable.moment = function(format, locale) { let 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'); $('#log-entries').DataTable({ order: [[0, 'desc'], [1, 'asc']], filterDropDown: { columns: [ { idx: 1 }, { idx: 2 }, { idx: 3 }, { idx: 4 }, { idx: 5 }, { idx: 6 } ], bootstrap: true }, "stateSave": true, "stateDuration": 0 }); }); {% endblock %}