2019-08-14 09:44:49 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
2021-09-28 20:31:19 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
<title>Tracker Management</title>
|
|
|
|
<link rel="icon" href="{{ url_for('static', filename='image/ail-icon.png') }}">
|
|
|
|
|
|
|
|
<!-- Core CSS -->
|
|
|
|
<link href="{{ url_for('static', filename='css/bootstrap4.min.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='css/font-awesome.min.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='css/dataTables.bootstrap.min.css') }}" rel="stylesheet">
|
|
|
|
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/bootstrap4.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.dataTables.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/dataTables.bootstrap.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/d3.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/d3/sparklines.js') }}"></script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
.btn-link {
|
|
|
|
color: #000000
|
|
|
|
}
|
|
|
|
|
|
|
|
.mouse_pointer {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.lb-md {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
</style>
|
2019-08-14 09:44:49 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2021-09-28 20:31:19 +02:00
|
|
|
{% include 'nav_bar.html' %}
|
|
|
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
{% include 'hunter/menu_sidebar.html' %}
|
|
|
|
|
|
|
|
<div class="col-12 col-lg-10" id="core_content">
|
|
|
|
|
2022-07-11 11:37:16 +02:00
|
|
|
{% if user_trackers %}
|
|
|
|
|
2021-09-28 20:31:19 +02:00
|
|
|
<div class="card my-3">
|
|
|
|
<div class="card-header">
|
2022-07-11 11:37:16 +02:00
|
|
|
<h5 class="card-title">Your {{ tracker_type }} Trackers</h5>
|
2021-09-28 20:31:19 +02:00
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<table id="table_user_trackers" class="table table-striped table-bordered">
|
|
|
|
<thead class="bg-dark text-white">
|
|
|
|
<tr>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Tracker</th>
|
|
|
|
<th>First seen</th>
|
|
|
|
<th>Last seen</th>
|
2023-06-29 08:48:50 +02:00
|
|
|
<th>Emails</th>
|
2021-09-28 20:31:19 +02:00
|
|
|
<th>sparkline</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody style="font-size: 15px;">
|
2022-07-11 11:37:16 +02:00
|
|
|
{% for dict_uuid in user_trackers %}
|
2021-09-28 20:31:19 +02:00
|
|
|
<tr>
|
|
|
|
<td>{{ dict_uuid['type'] }}</td>
|
|
|
|
<td>
|
2020-02-10 13:40:11 +01:00
|
|
|
<span>
|
2023-05-11 16:21:43 +02:00
|
|
|
<a target="_blank" href="{{ url_for('hunters.show_tracker') }}?uuid={{ dict_uuid['uuid'] }}">
|
2023-05-04 16:35:56 +02:00
|
|
|
{% if dict_uuid['tracked'] %}
|
|
|
|
{% if dict_uuid['tracked']|length > 256 %}
|
|
|
|
{{ dict_uuid['tracked'][0:256] }}...
|
2021-09-28 20:31:19 +02:00
|
|
|
{% else %}
|
2023-05-04 16:35:56 +02:00
|
|
|
{{ dict_uuid['tracked'] }}
|
2021-09-28 20:31:19 +02:00
|
|
|
{% endif %}
|
2020-02-10 13:40:11 +01:00
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</span>
|
2023-06-29 08:48:50 +02:00
|
|
|
{% if dict_uuid['description'] %}
|
|
|
|
<div><i>{{ dict_uuid['description'] }}</i></div>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-09-28 20:31:19 +02:00
|
|
|
<div>
|
|
|
|
{% for tag in dict_uuid['tags'] %}
|
|
|
|
<a href="{{ url_for('tags_ui.get_obj_by_tags') }}?object_type=item<ags={{ tag }}">
|
|
|
|
<span class="badge badge-{{ bootstrap_label[loop.index0 % 5] }} pull-left">{{ tag }}</span>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if dict_uuid['first_seen'] %}
|
2022-07-11 11:37:16 +02:00
|
|
|
{{ dict_uuid['first_seen'][0:4] }}/{{ dict_uuid['first_seen'][4:6] }}/{{ dict_uuid['first_seen'][6:8] }}
|
2021-09-28 20:31:19 +02:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if dict_uuid['last_seen'] %}
|
2022-07-11 11:37:16 +02:00
|
|
|
{{ dict_uuid['last_seen'][0:4] }}/{{ dict_uuid['last_seen'][4:6] }}/{{ dict_uuid['last_seen'][6:8] }}
|
2021-09-28 20:31:19 +02:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% for mail in dict_uuid['mails'] %}
|
|
|
|
{{ mail }}<br>
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
<td id="sparklines_{{ dict_uuid['uuid'] }}" style="text-align:center;"></td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-07-11 11:37:16 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2021-09-28 20:31:19 +02:00
|
|
|
<div class="card my-3">
|
|
|
|
<div class="card-header">
|
2022-07-11 11:37:16 +02:00
|
|
|
<h5 class="card-title">Global {{ tracker_type }} Trackers</h5>
|
2021-09-28 20:31:19 +02:00
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<table id="table_global_trackers" class="table table-striped table-bordered">
|
|
|
|
<thead class="bg-dark text-white">
|
|
|
|
<tr>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Tracker</th>
|
|
|
|
<th>First seen</th>
|
|
|
|
<th>Last seen</th>
|
|
|
|
<th>Email notification</th>
|
|
|
|
<th>sparkline</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody style="font-size: 15px;">
|
2022-07-11 11:37:16 +02:00
|
|
|
{% for dict_uuid in global_trackers %}
|
2021-09-28 20:31:19 +02:00
|
|
|
<tr>
|
|
|
|
<td>{{ dict_uuid['type'] }}</td>
|
|
|
|
<td>
|
2020-02-10 13:40:11 +01:00
|
|
|
<span>
|
2023-05-11 16:21:43 +02:00
|
|
|
<a target="_blank" href="{{ url_for('hunters.show_tracker') }}?uuid={{ dict_uuid['uuid'] }}">
|
2023-05-04 16:35:56 +02:00
|
|
|
{% if dict_uuid['tracked'] %}
|
|
|
|
{% if dict_uuid['tracked']|length > 256 %}
|
|
|
|
{{ dict_uuid['tracked'][0:256] }}...
|
2021-09-28 20:31:19 +02:00
|
|
|
{% else %}
|
2023-05-04 16:35:56 +02:00
|
|
|
{{ dict_uuid['tracked'] }}
|
2021-09-28 20:31:19 +02:00
|
|
|
{% endif %}
|
2020-02-10 13:40:11 +01:00
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</span>
|
2023-06-29 08:48:50 +02:00
|
|
|
{% if dict_uuid['description'] %}
|
|
|
|
<div><i>{{ dict_uuid['description'] }}</i></div>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-09-28 20:31:19 +02:00
|
|
|
<div>
|
|
|
|
{% for tag in dict_uuid['tags'] %}
|
|
|
|
<a href="{{ url_for('tags_ui.get_obj_by_tags') }}?object_type=item<ags={{ tag }}">
|
|
|
|
<span class="badge badge-{{ bootstrap_label[loop.index0 % 5] }}">{{ tag }}</span>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if dict_uuid['first_seen'] %}
|
2022-07-11 11:37:16 +02:00
|
|
|
{{ dict_uuid['first_seen'][0:4] }}/{{ dict_uuid['first_seen'][4:6] }}/{{ dict_uuid['first_seen'][6:8] }}
|
2021-09-28 20:31:19 +02:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if dict_uuid['last_seen'] %}
|
2022-07-11 11:37:16 +02:00
|
|
|
{{ dict_uuid['last_seen'][0:4] }}/{{ dict_uuid['last_seen'][4:6] }}/{{ dict_uuid['last_seen'][6:8] }}
|
2021-09-28 20:31:19 +02:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
2021-09-29 16:17:08 +02:00
|
|
|
|
2021-09-28 20:31:19 +02:00
|
|
|
<td>
|
|
|
|
{% for mail in dict_uuid['mails'] %}
|
|
|
|
{{ mail }}<br>
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
<td id="sparklines_{{ dict_uuid['uuid'] }}" style="text-align:center;"></td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2023-05-04 16:35:56 +02:00
|
|
|
<a class="btn btn-info my-4" href="{{ url_for('hunters.add_tracked_menu') }}">
|
2021-09-28 20:31:19 +02:00
|
|
|
<i class="fas fa-plus-circle ml-auto"></i>
|
|
|
|
Create New Tracker
|
|
|
|
</a>
|
2019-08-14 09:44:49 +02:00
|
|
|
|
2021-09-28 20:31:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-14 09:44:49 +02:00
|
|
|
|
|
|
|
<script>
|
2021-09-28 20:31:19 +02:00
|
|
|
$(document).ready(function () {
|
|
|
|
$("#page-Tracker").addClass("active");
|
2022-07-11 11:37:16 +02:00
|
|
|
$("#nav_tracker_{{tracker_type}}").addClass("active");
|
2021-09-28 20:31:19 +02:00
|
|
|
|
2022-07-11 11:37:16 +02:00
|
|
|
{% for dict_uuid in user_trackers %}
|
2021-09-28 20:31:19 +02:00
|
|
|
sparkline("sparklines_{{ dict_uuid['uuid'] }}", {{ dict_uuid['sparkline'] }}, {height: 40});
|
|
|
|
{% endfor %}
|
2022-07-11 11:37:16 +02:00
|
|
|
{% for dict_uuid in global_trackers %}
|
2021-09-28 20:31:19 +02:00
|
|
|
sparkline("sparklines_{{ dict_uuid['uuid'] }}", {{ dict_uuid['sparkline'] }}, {height: 40});
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
$('#table_user_trackers').DataTable({
|
|
|
|
"aLengthMenu": [[5, 10, 15, -1], [5, 10, 15, "All"]],
|
|
|
|
"iDisplayLength": 10,
|
|
|
|
"order": [[0, "desc"]]
|
|
|
|
});
|
|
|
|
$('#table_global_trackers').DataTable({
|
|
|
|
"aLengthMenu": [[5, 10, 15, -1], [5, 10, 15, "All"]],
|
|
|
|
"iDisplayLength": 10,
|
|
|
|
"order": [[0, "desc"]]
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
function toggle_sidebar() {
|
|
|
|
if ($('#nav_menu').is(':visible')) {
|
|
|
|
$('#nav_menu').hide();
|
|
|
|
$('#side_menu').removeClass('border-right')
|
|
|
|
$('#side_menu').removeClass('col-lg-2')
|
|
|
|
$('#core_content').removeClass('col-lg-10')
|
|
|
|
} else {
|
|
|
|
$('#nav_menu').show();
|
|
|
|
$('#side_menu').addClass('border-right')
|
|
|
|
$('#side_menu').addClass('col-lg-2')
|
|
|
|
$('#core_content').addClass('col-lg-10')
|
|
|
|
}
|
|
|
|
}
|
2019-08-14 09:44:49 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|