aa-ledger 0.9.9__py3-none-any.whl → 0.9.9.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aa_ledger-0.9.9.dist-info → aa_ledger-0.9.9.1.dist-info}/METADATA +1 -1
- {aa_ledger-0.9.9.dist-info → aa_ledger-0.9.9.1.dist-info}/RECORD +77 -77
- ledger/__init__.py +9 -9
- ledger/api/api_helper/billboard_helper.py +277 -277
- ledger/api/ledger/admin.py +289 -289
- ledger/app_settings.py +50 -50
- ledger/constants.py +5 -0
- ledger/decorators.py +92 -11
- ledger/helpers/alliance.py +353 -334
- ledger/helpers/character.py +260 -260
- ledger/helpers/core.py +565 -565
- ledger/helpers/corporation.py +455 -421
- ledger/helpers/etag.py +237 -237
- ledger/helpers/ref_type.py +475 -475
- ledger/locale/cs_CZ/LC_MESSAGES/django.po +942 -942
- ledger/locale/de/LC_MESSAGES/django.po +961 -961
- ledger/locale/django.pot +942 -942
- ledger/locale/es/LC_MESSAGES/django.po +943 -943
- ledger/locale/fr_FR/LC_MESSAGES/django.po +942 -942
- ledger/locale/it_IT/LC_MESSAGES/django.po +942 -942
- ledger/locale/ja/LC_MESSAGES/django.po +943 -943
- ledger/locale/ko_KR/LC_MESSAGES/django.po +942 -942
- ledger/locale/nl_NL/LC_MESSAGES/django.po +942 -942
- ledger/locale/pl_PL/LC_MESSAGES/django.po +942 -942
- ledger/locale/ru/LC_MESSAGES/django.po +945 -945
- ledger/locale/sk/LC_MESSAGES/django.po +944 -944
- ledger/locale/uk/LC_MESSAGES/django.po +946 -946
- ledger/locale/zh_Hans/LC_MESSAGES/django.po +943 -943
- ledger/managers/character_mining_manager.py +239 -239
- ledger/managers/character_planetary_manager.py +1 -1
- ledger/migrations/0016_characterminingledger_price_per_unit.py +21 -21
- ledger/models/characteraudit.py +496 -496
- ledger/static/ledger/css/cards.css +1 -1
- ledger/static/ledger/css/table.css +1 -1
- ledger/static/ledger/js/charts.js +221 -221
- ledger/static/ledger/js/planetary.js +143 -143
- ledger/tasks.py +442 -449
- ledger/templates/ledger/allyledger/admin/alliance_administration.html +46 -46
- ledger/templates/ledger/allyledger/admin/alliance_overview.html +108 -108
- ledger/templates/ledger/allyledger/alliance_ledger.html +86 -86
- ledger/templates/ledger/bundles/ally-administration-bundles.html +59 -59
- ledger/templates/ledger/bundles/char-administration-bundles.html +66 -66
- ledger/templates/ledger/bundles/character-ledger-bundles.html +66 -66
- ledger/templates/ledger/bundles/corp-administration-bundles.html +68 -68
- ledger/templates/ledger/bundles/corporation-ledger-bundles.html +75 -75
- ledger/templates/ledger/charledger/admin/character_administration.html +39 -39
- ledger/templates/ledger/charledger/admin/character_overview.html +106 -106
- ledger/templates/ledger/charledger/character_ledger.html +94 -94
- ledger/templates/ledger/charledger/planetary/planetary_ledger.html +54 -54
- ledger/templates/ledger/corpledger/admin/corporation_administration.html +39 -39
- ledger/templates/ledger/corpledger/admin/corporation_overview.html +108 -108
- ledger/templates/ledger/corpledger/corporation_ledger.html +129 -86
- ledger/templates/ledger/partials/administration/alliance.html +37 -37
- ledger/templates/ledger/partials/administration/alliance_corporations.html +58 -58
- ledger/templates/ledger/partials/administration/corporation_characters.html +34 -34
- ledger/templates/ledger/partials/information/daily.html +56 -56
- ledger/templates/ledger/partials/information/day.html +48 -48
- ledger/templates/ledger/partials/information/hourly.html +53 -53
- ledger/templates/ledger/partials/information/summary.html +88 -88
- ledger/templates/ledger/partials/information/view_character_content.html +35 -35
- ledger/templates/ledger/partials/table/char-ledger.html +85 -85
- ledger/templates/ledger/partials/table/corp-ledger.html +66 -66
- ledger/templates/ledger/partials/view/card.html +160 -160
- ledger/tests/test_decarators.py +102 -17
- ledger/tests/test_helpers/test_etag.py +149 -149
- ledger/tests/test_managers/test_character_mining_manager.py +54 -54
- ledger/tests/test_models/test_characterminingledger.py +107 -106
- ledger/tests/test_tasks.py +282 -282
- ledger/tests/test_templatetags.py +5 -2
- ledger/tests/test_views/test_access.py +852 -852
- ledger/tests/testdata/esi.json +1 -2
- ledger/tests/testdata/eveuniverse.json +391 -391
- ledger/urls.py +66 -21
- ledger/views/alliance/alliance_ledger.py +203 -203
- ledger/views/corporation/corporation_ledger.py +25 -9
- {aa_ledger-0.9.9.dist-info → aa_ledger-0.9.9.1.dist-info}/WHEEL +0 -0
- {aa_ledger-0.9.9.dist-info → aa_ledger-0.9.9.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
{% extends 'ledger/base.html' %}
|
|
2
|
-
{% load i18n %}
|
|
3
|
-
|
|
4
|
-
{% block page_template_title %}
|
|
5
|
-
{{ title }}
|
|
6
|
-
{% endblock page_template_title %}
|
|
7
|
-
|
|
8
|
-
{% block page_topic %}
|
|
9
|
-
<h1 class="page-header text-center">
|
|
10
|
-
{{ title }}
|
|
11
|
-
</h1>
|
|
12
|
-
{% endblock page_topic %}
|
|
13
|
-
|
|
14
|
-
{% block ledger_block %}
|
|
15
|
-
<div class="bg-primary rounded-top px-2 py-2 mb-4">
|
|
16
|
-
<h3 class="text-white">{% translate "Corporation Overview" %}</h3>
|
|
17
|
-
</div>
|
|
18
|
-
<div id="ledger-index" class="card-body rounded-bottom fade">
|
|
19
|
-
<div class="card-body bg-secondary table-responsive">
|
|
20
|
-
<div class="row">
|
|
21
|
-
<table class="table table-dark table-striped table-hover w-100" id="corporations">
|
|
22
|
-
<br>
|
|
23
|
-
<thead>
|
|
24
|
-
<th class="col-portrait" style="width: 10%;"></th>
|
|
25
|
-
<th class="col-group" style="width: 20%;">{% trans "Corporation" %}</th>
|
|
26
|
-
<th class="col-actions" style="width: 10%;">{% trans "Actions" %}</th>
|
|
27
|
-
</thead>
|
|
28
|
-
<tbody>
|
|
29
|
-
</tbody>
|
|
30
|
-
</table>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
{% endblock %}
|
|
35
|
-
|
|
36
|
-
{% block extra_javascript %}
|
|
37
|
-
{% include 'bundles/datatables-js-bs5.html' %}
|
|
38
|
-
<script type="application/javascript">
|
|
39
|
-
document.addEventListener('DOMContentLoaded', function() {
|
|
40
|
-
const AdminUrl = "{% url 'ledger:api:get_corporation_overview' %}"
|
|
41
|
-
let CorporationOverviewUrl = "{% url 'ledger:corporation_ledger' corporation_id=1337 %}"
|
|
42
|
-
|
|
43
|
-
const tableContainer = $('#corporations');
|
|
44
|
-
const tableOverview = tableContainer.DataTable(
|
|
45
|
-
{
|
|
46
|
-
ajax: {
|
|
47
|
-
url: AdminUrl,
|
|
48
|
-
dataSrc: function(json) {
|
|
49
|
-
return Object.values(json[0].corporation);
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
columns: [
|
|
53
|
-
{
|
|
54
|
-
data: 'corporation_id'
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
data: 'corporation_name'
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
columnDefs: [
|
|
61
|
-
{
|
|
62
|
-
targets: 0,
|
|
63
|
-
render: function (data, type, row) {
|
|
64
|
-
return '<img src="https://images.evetech.net/corporations/' + row.corporation_id + '/logo?size=32" class="rounded-circle" title="' + row.corporation_name + '" height="30" data-tooltip-toggle="corp-tooltip" data-bs-placement="top">';
|
|
65
|
-
},
|
|
66
|
-
sortable: false,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
targets: 2,
|
|
70
|
-
className: 'text-end',
|
|
71
|
-
sortable: false,
|
|
72
|
-
render: function (data, type, row) {
|
|
73
|
-
var OverviewUrl = CorporationOverviewUrl.replace('1337', row.corporation_id);
|
|
74
|
-
return `<a href="${OverviewUrl}">
|
|
75
|
-
<button class="btn btn-primary btn-sm"
|
|
76
|
-
title="{% trans "Show" %}"
|
|
77
|
-
data-tooltip-toggle="corp-tooltip"
|
|
78
|
-
data-bs-placement="left"
|
|
79
|
-
>
|
|
80
|
-
<i class="fa-solid fa-eye"></i>
|
|
81
|
-
</button>
|
|
82
|
-
</a>`;
|
|
83
|
-
},
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
order: [[1, 'asc']],
|
|
87
|
-
initComplete: function() {
|
|
88
|
-
$('[data-tooltip-toggle="corp-tooltip"]').tooltip({
|
|
89
|
-
trigger: 'hover',
|
|
90
|
-
});
|
|
91
|
-
$('#ledger-index').addClass('show');
|
|
92
|
-
},
|
|
93
|
-
drawCallback: function() {
|
|
94
|
-
$('[data-tooltip-toggle="corp-tooltip"]').tooltip({
|
|
95
|
-
trigger: 'hover',
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
});
|
|
101
|
-
</script>
|
|
102
|
-
{% endblock %}
|
|
103
|
-
|
|
104
|
-
{% block extra_css %}
|
|
105
|
-
{% endblock %}
|
|
106
|
-
|
|
107
|
-
{% block extra_script %}
|
|
108
|
-
{% endblock %}
|
|
1
|
+
{% extends 'ledger/base.html' %}
|
|
2
|
+
{% load i18n %}
|
|
3
|
+
|
|
4
|
+
{% block page_template_title %}
|
|
5
|
+
{{ title }}
|
|
6
|
+
{% endblock page_template_title %}
|
|
7
|
+
|
|
8
|
+
{% block page_topic %}
|
|
9
|
+
<h1 class="page-header text-center">
|
|
10
|
+
{{ title }}
|
|
11
|
+
</h1>
|
|
12
|
+
{% endblock page_topic %}
|
|
13
|
+
|
|
14
|
+
{% block ledger_block %}
|
|
15
|
+
<div class="bg-primary rounded-top px-2 py-2 mb-4">
|
|
16
|
+
<h3 class="text-white">{% translate "Corporation Overview" %}</h3>
|
|
17
|
+
</div>
|
|
18
|
+
<div id="ledger-index" class="card-body rounded-bottom fade">
|
|
19
|
+
<div class="card-body bg-secondary table-responsive">
|
|
20
|
+
<div class="row">
|
|
21
|
+
<table class="table table-dark table-striped table-hover w-100" id="corporations">
|
|
22
|
+
<br>
|
|
23
|
+
<thead>
|
|
24
|
+
<th class="col-portrait" style="width: 10%;"></th>
|
|
25
|
+
<th class="col-group" style="width: 20%;">{% trans "Corporation" %}</th>
|
|
26
|
+
<th class="col-actions" style="width: 10%;">{% trans "Actions" %}</th>
|
|
27
|
+
</thead>
|
|
28
|
+
<tbody>
|
|
29
|
+
</tbody>
|
|
30
|
+
</table>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
{% endblock %}
|
|
35
|
+
|
|
36
|
+
{% block extra_javascript %}
|
|
37
|
+
{% include 'bundles/datatables-js-bs5.html' %}
|
|
38
|
+
<script type="application/javascript">
|
|
39
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
40
|
+
const AdminUrl = "{% url 'ledger:api:get_corporation_overview' %}"
|
|
41
|
+
let CorporationOverviewUrl = "{% url 'ledger:corporation_ledger' corporation_id=1337 %}"
|
|
42
|
+
|
|
43
|
+
const tableContainer = $('#corporations');
|
|
44
|
+
const tableOverview = tableContainer.DataTable(
|
|
45
|
+
{
|
|
46
|
+
ajax: {
|
|
47
|
+
url: AdminUrl,
|
|
48
|
+
dataSrc: function(json) {
|
|
49
|
+
return Object.values(json[0].corporation);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
columns: [
|
|
53
|
+
{
|
|
54
|
+
data: 'corporation_id'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
data: 'corporation_name'
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
columnDefs: [
|
|
61
|
+
{
|
|
62
|
+
targets: 0,
|
|
63
|
+
render: function (data, type, row) {
|
|
64
|
+
return '<img src="https://images.evetech.net/corporations/' + row.corporation_id + '/logo?size=32" class="rounded-circle" title="' + row.corporation_name + '" height="30" data-tooltip-toggle="corp-tooltip" data-bs-placement="top">';
|
|
65
|
+
},
|
|
66
|
+
sortable: false,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
targets: 2,
|
|
70
|
+
className: 'text-end',
|
|
71
|
+
sortable: false,
|
|
72
|
+
render: function (data, type, row) {
|
|
73
|
+
var OverviewUrl = CorporationOverviewUrl.replace('1337', row.corporation_id);
|
|
74
|
+
return `<a href="${OverviewUrl}">
|
|
75
|
+
<button class="btn btn-primary btn-sm"
|
|
76
|
+
title="{% trans "Show" %}"
|
|
77
|
+
data-tooltip-toggle="corp-tooltip"
|
|
78
|
+
data-bs-placement="left"
|
|
79
|
+
>
|
|
80
|
+
<i class="fa-solid fa-eye"></i>
|
|
81
|
+
</button>
|
|
82
|
+
</a>`;
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
order: [[1, 'asc']],
|
|
87
|
+
initComplete: function() {
|
|
88
|
+
$('[data-tooltip-toggle="corp-tooltip"]').tooltip({
|
|
89
|
+
trigger: 'hover',
|
|
90
|
+
});
|
|
91
|
+
$('#ledger-index').addClass('show');
|
|
92
|
+
},
|
|
93
|
+
drawCallback: function() {
|
|
94
|
+
$('[data-tooltip-toggle="corp-tooltip"]').tooltip({
|
|
95
|
+
trigger: 'hover',
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
});
|
|
101
|
+
</script>
|
|
102
|
+
{% endblock %}
|
|
103
|
+
|
|
104
|
+
{% block extra_css %}
|
|
105
|
+
{% endblock %}
|
|
106
|
+
|
|
107
|
+
{% block extra_script %}
|
|
108
|
+
{% endblock %}
|
|
@@ -1,86 +1,129 @@
|
|
|
1
|
-
{% extends 'ledger/base.html' %}
|
|
2
|
-
{% load i18n %}
|
|
3
|
-
|
|
4
|
-
{% block page_template_title %}
|
|
5
|
-
{{ title }}
|
|
6
|
-
{% endblock page_template_title %}
|
|
7
|
-
|
|
8
|
-
{% block page_topic %}
|
|
9
|
-
<h1 class="page-header text-center">
|
|
10
|
-
{{ title }}
|
|
11
|
-
</h1>
|
|
12
|
-
{% endblock page_topic %}
|
|
13
|
-
|
|
14
|
-
{% block ledger_block %}
|
|
15
|
-
<div class="card-body bg-primary rounded-top d-flex align-items-center">
|
|
16
|
-
<h3 class="me-3">{% translate "Corporation Ledger" %}</h3>
|
|
17
|
-
{% if years %}
|
|
18
|
-
<div class="dropdown px-2">
|
|
19
|
-
<button id="
|
|
20
|
-
{% trans "
|
|
21
|
-
</button>
|
|
22
|
-
<ul class="dropdown-menu" id="
|
|
23
|
-
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</a>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
{% for
|
|
51
|
-
<li>
|
|
52
|
-
|
|
53
|
-
{{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
{%
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
{%
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
{%
|
|
1
|
+
{% extends 'ledger/base.html' %}
|
|
2
|
+
{% load i18n %}
|
|
3
|
+
|
|
4
|
+
{% block page_template_title %}
|
|
5
|
+
{{ title }}
|
|
6
|
+
{% endblock page_template_title %}
|
|
7
|
+
|
|
8
|
+
{% block page_topic %}
|
|
9
|
+
<h1 class="page-header text-center">
|
|
10
|
+
{{ title }}
|
|
11
|
+
</h1>
|
|
12
|
+
{% endblock page_topic %}
|
|
13
|
+
|
|
14
|
+
{% block ledger_block %}
|
|
15
|
+
<div class="card-body bg-primary rounded-top d-flex align-items-center">
|
|
16
|
+
<h3 class="me-3">{% translate "Corporation Ledger" %}</h3>
|
|
17
|
+
{% if years %}
|
|
18
|
+
<div class="dropdown px-2">
|
|
19
|
+
<button id="divisionDropDownButton" class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
20
|
+
{% trans "Division" %}
|
|
21
|
+
</button>
|
|
22
|
+
<ul class="dropdown-menu" id="divisionDropdown">
|
|
23
|
+
<li>
|
|
24
|
+
<a class="dropdown-item {% if division_id|default:'null' == 'null' %}active{% endif %}" href="{% url 'ledger:corporation_ledger' corporation_id=corporation_id %}{% if view.type == 'single' %}?single=True{% endif %}">{% trans "All Divisions" %}</a>
|
|
25
|
+
</li>
|
|
26
|
+
{% for division in divisions %}
|
|
27
|
+
<li>
|
|
28
|
+
{% if view.date.year %}
|
|
29
|
+
{% if view.date.month %}
|
|
30
|
+
{% if view.date.day %}
|
|
31
|
+
<a class="dropdown-item {% if division_id|default:'null' == division.division_id %}active{% endif %}" href="{% url 'ledger:corporation_ledger' corporation_id=corporation_id division_id=division.division_id year=view.date.year month=view.date.month day=view.date.day %}{% if view.type == 'single' %}?single=True{% endif %}">{{ division.name }}</a>
|
|
32
|
+
{% else %}
|
|
33
|
+
<a class="dropdown-item {% if division_id|default:'null' == division.division_id %}active{% endif %}" href="{% url 'ledger:corporation_ledger' corporation_id=corporation_id division_id=division.division_id year=view.date.year month=view.date.month %}{% if view.type == 'single' %}?single=True{% endif %}">{{ division.name }}</a>
|
|
34
|
+
{% endif %}
|
|
35
|
+
{% else %}
|
|
36
|
+
<a class="dropdown-item {% if division_id|default:'null' == division.division_id %}active{% endif %}" href="{% url 'ledger:corporation_ledger' corporation_id=corporation_id division_id=division.division_id year=view.date.year %}{% if view.type == 'single' %}?single=True{% endif %}">{{ division.name }}</a>
|
|
37
|
+
{% endif %}
|
|
38
|
+
{% else %}
|
|
39
|
+
<a class="dropdown-item {% if division_id|default:'null' == division.division_id %}active{% endif %}" href="{% url 'ledger:corporation_ledger' corporation_id=corporation_id division_id=division.division_id %}{% if view.type == 'single' %}?single=True{% endif %}">{{ division.name }}</a>
|
|
40
|
+
{% endif %}
|
|
41
|
+
</li>
|
|
42
|
+
{% endfor %}
|
|
43
|
+
</ul>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="dropdown px-2">
|
|
46
|
+
<button id="yearDropDownButton" class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
47
|
+
{% trans "Year" %}
|
|
48
|
+
</button>
|
|
49
|
+
<ul class="dropdown-menu" id="yearDropdown">
|
|
50
|
+
{% for year in years %}
|
|
51
|
+
<li>
|
|
52
|
+
{% if division_id %}
|
|
53
|
+
<a class="dropdown-item {% if view.date.year|default:'null' == year %}active{% endif %}" href="{% url 'ledger:corporation_ledger' corporation_id=corporation_id division_id=division_id year=year %}{% if view.type == 'single' %}?single=True{% endif %}">{{ year }}</a>
|
|
54
|
+
{% else %}
|
|
55
|
+
<a class="dropdown-item {% if view.date.year|default:'null' == year %}active{% endif %}" href="{% url 'ledger:corporation_ledger' corporation_id=corporation_id year=year %}{% if view.type == 'single' %}?single=True{% endif %}">{{ year }}</a>
|
|
56
|
+
{% endif %}
|
|
57
|
+
</li>
|
|
58
|
+
{% endfor %}
|
|
59
|
+
</ul>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="dropdown px-2">
|
|
62
|
+
<button id="monthDropDownButton" class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
63
|
+
{% trans "Month" %}
|
|
64
|
+
</button>
|
|
65
|
+
<ul class="dropdown-menu" id="monthDropdown">
|
|
66
|
+
{% for m in 12|range_filter %}
|
|
67
|
+
<li>
|
|
68
|
+
{% if division_id %}
|
|
69
|
+
<a class="dropdown-item {% if view.date.month|default:'null' == m %}active{% endif %}" href="{% url 'ledger:corporation_ledger' corporation_id=corporation_id division_id=division_id year=view.date.year|default:view.date.current.year month=m %}{% if view.type == 'single' %}?single=True{% endif %}">
|
|
70
|
+
{{ m|month_name }}
|
|
71
|
+
</a>
|
|
72
|
+
{% else %}
|
|
73
|
+
<a class="dropdown-item {% if view.date.month|default:'null' == m %}active{% endif %}" href="{% url 'ledger:corporation_ledger' corporation_id=corporation_id year=view.date.year|default:view.date.current.year month=m %}{% if view.type == 'single' %}?single=True{% endif %}">
|
|
74
|
+
{{ m|month_name }}
|
|
75
|
+
</a>
|
|
76
|
+
{% endif %}
|
|
77
|
+
</li>
|
|
78
|
+
{% endfor %}
|
|
79
|
+
</ul>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="dropdown px-2">
|
|
82
|
+
<button id="dayDropDownButton" class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
83
|
+
{% trans "Day" %}
|
|
84
|
+
</button>
|
|
85
|
+
<ul class="dropdown-menu" id="dayDropdown">
|
|
86
|
+
{% month_days view.date as month_days %}
|
|
87
|
+
{% for day in month_days %}
|
|
88
|
+
<li>
|
|
89
|
+
{% if division_id %}
|
|
90
|
+
<a class="dropdown-item {% if view.date.day|default:'null' == day %}active{% endif %}" href="{% url 'ledger:corporation_ledger' corporation_id=corporation_id division_id=division_id year=view.date.year|default:view.date.current.year month=view.date.month|default:view.date.current.month day=day %}{% if view.type == 'single' %}?single=True{% endif %}">
|
|
91
|
+
{{ day }}
|
|
92
|
+
</a>
|
|
93
|
+
{% else %}
|
|
94
|
+
<a class="dropdown-item {% if view.date.day|default:'null' == day %}active{% endif %}" href="{% url 'ledger:corporation_ledger' corporation_id=corporation_id year=view.date.year|default:view.date.current.year month=view.date.month|default:view.date.current.month day=day %}{% if view.type == 'single' %}?single=True{% endif %}">
|
|
95
|
+
{{ day }}
|
|
96
|
+
</a>
|
|
97
|
+
{% endif %}
|
|
98
|
+
</li>
|
|
99
|
+
{% endfor %}
|
|
100
|
+
</ul>
|
|
101
|
+
</div>
|
|
102
|
+
{% endif %}
|
|
103
|
+
<div class="ms-auto">
|
|
104
|
+
<a href="{% url 'ledger:corporation_administration' corporation_id=corporation_id %}"><button class="btn btn-secondary me-2 administration">{% translate 'Administration' %}</button></a>
|
|
105
|
+
<a href="{% url 'ledger:corporation_overview' %}"><button class="btn btn-secondary overview">{% translate 'Corporation Overview' %}</button></a>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<div id="ledger-index" class="card-body rounded-bottom fade">
|
|
109
|
+
<div class="card-body bg-secondary table-responsive">
|
|
110
|
+
{% include 'ledger/partials/table/corp-ledger.html' with characters=characters totals=totals %}
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
{% include 'ledger/partials/thirdparty/billboard.html' %}
|
|
114
|
+
</div>
|
|
115
|
+
{% include 'ledger/partials/modal/modal.html' with name="ViewCharacter" %}
|
|
116
|
+
{% endblock %}
|
|
117
|
+
|
|
118
|
+
{% block extra_css %}
|
|
119
|
+
{% include 'ledger/bundles/table-css.html' %}
|
|
120
|
+
{% endblock %}
|
|
121
|
+
|
|
122
|
+
{% block extra_javascript %}
|
|
123
|
+
{% include 'bundles/datatables-js-bs5.html' %}
|
|
124
|
+
{% include 'ledger/bundles/ledger-bundles.html' %}
|
|
125
|
+
{% include 'ledger/bundles/corporation-ledger-bundles.html' %}
|
|
126
|
+
{% endblock extra_javascript %}
|
|
127
|
+
|
|
128
|
+
{% block extra_script %}
|
|
129
|
+
{% endblock extra_script %}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{% load i18n %}
|
|
2
|
-
|
|
3
|
-
{% if not alliance %}
|
|
4
|
-
<div class="alert alert-info" role="alert">
|
|
5
|
-
{% translate "Alliance not found." %}
|
|
6
|
-
</div>
|
|
7
|
-
{% else %}
|
|
8
|
-
<div class="card-header bg-primary rounded-top d-flex align-items-center mt-4">
|
|
9
|
-
<h3 class="text-white">{% translate "Alliance" %}</h3>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="card-body bg-secondary">
|
|
12
|
-
<ul class="card-characters">
|
|
13
|
-
<div class="card">
|
|
14
|
-
<!-- Alliance Name -->
|
|
15
|
-
<div class="card-header text-center">
|
|
16
|
-
{{ alliance.alliance_name }} {{ alliance.get_status.bootstrap_icon }}
|
|
17
|
-
</div>
|
|
18
|
-
<!-- Alliance Logo -->
|
|
19
|
-
<div class="card-body text-center">
|
|
20
|
-
<a href="{% url 'ledger:alliance_ledger' alliance_id=alliance.alliance_id %}?single=True">
|
|
21
|
-
<img src="{{ alliance.logo_url_256 }}">
|
|
22
|
-
</a>
|
|
23
|
-
</div>
|
|
24
|
-
<!-- Alliance Actions -->
|
|
25
|
-
<div class="card-footer text-center">
|
|
26
|
-
<a class="btn btn-success btn-sm"
|
|
27
|
-
href="{% url 'ledger:alliance_ledger' alliance_id=alliance.alliance_id %}?single=True"
|
|
28
|
-
role="button"
|
|
29
|
-
data-tooltip-toggle="ledger-tooltip"
|
|
30
|
-
title="{% translate 'View Alliance Ledger' %}">
|
|
31
|
-
<i class="fas fa-sign-in-alt"></i>
|
|
32
|
-
</a>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</ul>
|
|
36
|
-
</div>
|
|
37
|
-
{% endif %}
|
|
1
|
+
{% load i18n %}
|
|
2
|
+
|
|
3
|
+
{% if not alliance %}
|
|
4
|
+
<div class="alert alert-info" role="alert">
|
|
5
|
+
{% translate "Alliance not found." %}
|
|
6
|
+
</div>
|
|
7
|
+
{% else %}
|
|
8
|
+
<div class="card-header bg-primary rounded-top d-flex align-items-center mt-4">
|
|
9
|
+
<h3 class="text-white">{% translate "Alliance" %}</h3>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="card-body bg-secondary">
|
|
12
|
+
<ul class="card-characters">
|
|
13
|
+
<div class="card">
|
|
14
|
+
<!-- Alliance Name -->
|
|
15
|
+
<div class="card-header text-center">
|
|
16
|
+
{{ alliance.alliance_name }} {{ alliance.get_status.bootstrap_icon }}
|
|
17
|
+
</div>
|
|
18
|
+
<!-- Alliance Logo -->
|
|
19
|
+
<div class="card-body text-center">
|
|
20
|
+
<a href="{% url 'ledger:alliance_ledger' alliance_id=alliance.alliance_id %}?single=True">
|
|
21
|
+
<img src="{{ alliance.logo_url_256 }}">
|
|
22
|
+
</a>
|
|
23
|
+
</div>
|
|
24
|
+
<!-- Alliance Actions -->
|
|
25
|
+
<div class="card-footer text-center">
|
|
26
|
+
<a class="btn btn-success btn-sm"
|
|
27
|
+
href="{% url 'ledger:alliance_ledger' alliance_id=alliance.alliance_id %}?single=True"
|
|
28
|
+
role="button"
|
|
29
|
+
data-tooltip-toggle="ledger-tooltip"
|
|
30
|
+
title="{% translate 'View Alliance Ledger' %}">
|
|
31
|
+
<i class="fas fa-sign-in-alt"></i>
|
|
32
|
+
</a>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</ul>
|
|
36
|
+
</div>
|
|
37
|
+
{% endif %}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
{% load i18n %}
|
|
2
|
-
|
|
3
|
-
{% if corporations|length == 0 %}
|
|
4
|
-
<div class="alert alert-info" role="alert">
|
|
5
|
-
{% translate "No Corporations found." %}
|
|
6
|
-
</div>
|
|
7
|
-
{% else %}
|
|
8
|
-
<div class="card-characters-container">
|
|
9
|
-
<ul class="card-characters">
|
|
10
|
-
{% for corporation in corporations %}
|
|
11
|
-
<li class="card-item">
|
|
12
|
-
<div class="card">
|
|
13
|
-
<!-- Corporation Name -->
|
|
14
|
-
<div class="card-header">
|
|
15
|
-
{{ corporation.corporation_name }} {{ corporation.get_status.bootstrap_icon }}
|
|
16
|
-
</div>
|
|
17
|
-
<!-- Corporation Logo -->
|
|
18
|
-
<div class="card-body text-center {{ corporation.get_status_opacity }}">
|
|
19
|
-
<a href="{% url 'ledger:corporation_ledger' corporation_id=corporation.corporation.corporation_id %}">
|
|
20
|
-
<img src="{{ corporation.corporation.logo_url_256 }}">
|
|
21
|
-
</a>
|
|
22
|
-
</div>
|
|
23
|
-
<!-- Corporation Actions -->
|
|
24
|
-
<div class="card-footer">
|
|
25
|
-
<a class="btn btn-success btn-sm"
|
|
26
|
-
href="{% url 'ledger:corporation_ledger' corporation_id=corporation.corporation.corporation_id %}"
|
|
27
|
-
role="button"
|
|
28
|
-
data-tooltip-toggle="ledger-tooltip"
|
|
29
|
-
title="{% translate 'View Corporation Ledger' %}">
|
|
30
|
-
<i class="fas fa-sign-in-alt"></i>
|
|
31
|
-
</a>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
</li>
|
|
35
|
-
{% endfor %}
|
|
36
|
-
|
|
37
|
-
{% comment %} Is a EveCorporationInfo QuerySet {% endcomment %}
|
|
38
|
-
{% for corporation in missing_corporations %}
|
|
39
|
-
<li class="card-item">
|
|
40
|
-
<div class="card bg-danger opacity-25">
|
|
41
|
-
<!-- Corporation Name -->
|
|
42
|
-
<div class="card-header">
|
|
43
|
-
{{ corporation.corporation_name }}
|
|
44
|
-
</div>
|
|
45
|
-
<!-- Corporation Logo -->
|
|
46
|
-
<div class="card-body">
|
|
47
|
-
<img src="{{ corporation.logo_url_256 }}">
|
|
48
|
-
</div>
|
|
49
|
-
<!-- Corporation Actions -->
|
|
50
|
-
<div class="card-footer no-opacity">
|
|
51
|
-
{% translate "Corporation is not registered in Ledger." %}
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
</li>
|
|
55
|
-
{% endfor %}
|
|
56
|
-
</ul>
|
|
57
|
-
</div>
|
|
58
|
-
{% endif %}
|
|
1
|
+
{% load i18n %}
|
|
2
|
+
|
|
3
|
+
{% if corporations|length == 0 %}
|
|
4
|
+
<div class="alert alert-info" role="alert">
|
|
5
|
+
{% translate "No Corporations found." %}
|
|
6
|
+
</div>
|
|
7
|
+
{% else %}
|
|
8
|
+
<div class="card-characters-container">
|
|
9
|
+
<ul class="card-characters">
|
|
10
|
+
{% for corporation in corporations %}
|
|
11
|
+
<li class="card-item">
|
|
12
|
+
<div class="card">
|
|
13
|
+
<!-- Corporation Name -->
|
|
14
|
+
<div class="card-header">
|
|
15
|
+
{{ corporation.corporation_name }} {{ corporation.get_status.bootstrap_icon }}
|
|
16
|
+
</div>
|
|
17
|
+
<!-- Corporation Logo -->
|
|
18
|
+
<div class="card-body text-center {{ corporation.get_status_opacity }}">
|
|
19
|
+
<a href="{% url 'ledger:corporation_ledger' corporation_id=corporation.corporation.corporation_id %}">
|
|
20
|
+
<img src="{{ corporation.corporation.logo_url_256 }}">
|
|
21
|
+
</a>
|
|
22
|
+
</div>
|
|
23
|
+
<!-- Corporation Actions -->
|
|
24
|
+
<div class="card-footer">
|
|
25
|
+
<a class="btn btn-success btn-sm"
|
|
26
|
+
href="{% url 'ledger:corporation_ledger' corporation_id=corporation.corporation.corporation_id %}"
|
|
27
|
+
role="button"
|
|
28
|
+
data-tooltip-toggle="ledger-tooltip"
|
|
29
|
+
title="{% translate 'View Corporation Ledger' %}">
|
|
30
|
+
<i class="fas fa-sign-in-alt"></i>
|
|
31
|
+
</a>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</li>
|
|
35
|
+
{% endfor %}
|
|
36
|
+
|
|
37
|
+
{% comment %} Is a EveCorporationInfo QuerySet {% endcomment %}
|
|
38
|
+
{% for corporation in missing_corporations %}
|
|
39
|
+
<li class="card-item">
|
|
40
|
+
<div class="card bg-danger opacity-25">
|
|
41
|
+
<!-- Corporation Name -->
|
|
42
|
+
<div class="card-header">
|
|
43
|
+
{{ corporation.corporation_name }}
|
|
44
|
+
</div>
|
|
45
|
+
<!-- Corporation Logo -->
|
|
46
|
+
<div class="card-body">
|
|
47
|
+
<img src="{{ corporation.logo_url_256 }}">
|
|
48
|
+
</div>
|
|
49
|
+
<!-- Corporation Actions -->
|
|
50
|
+
<div class="card-footer no-opacity">
|
|
51
|
+
{% translate "Corporation is not registered in Ledger." %}
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</li>
|
|
55
|
+
{% endfor %}
|
|
56
|
+
</ul>
|
|
57
|
+
</div>
|
|
58
|
+
{% endif %}
|