2019-08-14 07:44:49 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
2019-09-11 13:33:04 +00:00
|
|
|
<title>Tracker Management</title>
|
2019-08-14 07:44:49 +00:00
|
|
|
<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>
|
2019-09-11 13:33:04 +00:00
|
|
|
<script src="{{ url_for('static', filename='js/d3.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/plugins/d3/sparklines.js')}}"></script>
|
2019-08-14 07:44:49 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
.btn-link {
|
|
|
|
color: #000000
|
|
|
|
}
|
|
|
|
.mouse_pointer{
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.lb-md {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
{% include 'nav_bar.html' %}
|
|
|
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
|
|
|
|
2019-09-11 13:33:04 +00:00
|
|
|
{% include 'hunter/menu_sidebar.html' %}
|
2019-08-14 07:44:49 +00:00
|
|
|
|
|
|
|
<div class="col-12 col-lg-10" id="core_content">
|
|
|
|
|
|
|
|
<div class="card my-3">
|
|
|
|
<div class="card-header">
|
2019-09-11 13:33:04 +00:00
|
|
|
<h5 class="card-title">Your {{filter_type}} Trackers</h5>
|
2019-08-14 07:44:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
2019-09-11 13:33:04 +00:00
|
|
|
<table id="table_user_trackers" class="table table-striped table-bordered">
|
2019-08-14 07:44:49 +00:00
|
|
|
<thead class="bg-dark text-white">
|
|
|
|
<tr>
|
|
|
|
<th>Type</th>
|
2019-09-11 13:33:04 +00:00
|
|
|
<th>Tracker</th>
|
2019-08-14 07:44:49 +00:00
|
|
|
<th>First seen</th>
|
|
|
|
<th>Last seen</th>
|
|
|
|
<th>Email notification</th>
|
2019-09-11 13:33:04 +00:00
|
|
|
<th>sparkline</th>
|
2019-08-14 07:44:49 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody style="font-size: 15px;">
|
|
|
|
{% for dict_uuid in user_term %}
|
|
|
|
<tr>
|
|
|
|
<td>{{dict_uuid['type']}}</td>
|
|
|
|
<td>
|
2019-09-11 13:33:04 +00:00
|
|
|
<span><a target="_blank" href="{{ url_for('hunter.show_tracker') }}?uuid={{ dict_uuid['uuid'] }}">{{dict_uuid['term']}}</a></span>
|
2019-08-14 07:44:49 +00:00
|
|
|
<div>
|
|
|
|
{% for tag in dict_uuid['tags'] %}
|
|
|
|
<a href="{{ url_for('Tags.Tags_page') }}?ltags={{ tag }}">
|
2019-09-11 13:33:04 +00:00
|
|
|
<span class="badge badge-{{ bootstrap_label[loop.index0 % 5] }} pull-left">{{ tag }}</span>
|
2019-08-14 07:44:49 +00:00
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if dict_uuid['first_seen'] %}
|
|
|
|
{{dict_uuid['first_seen'][0:4]}}/{{dict_uuid['first_seen'][4:6]}}/{{dict_uuid['first_seen'][6:8]}}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if dict_uuid['last_seen'] %}
|
|
|
|
{{dict_uuid['last_seen'][0:4]}}/{{dict_uuid['last_seen'][4:6]}}/{{dict_uuid['last_seen'][6:8]}}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% for mail in dict_uuid['mails'] %}
|
|
|
|
{{ mail }}<br>
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
2019-09-11 13:33:04 +00:00
|
|
|
<td id="sparklines_{{ dict_uuid['uuid'] }}" style="text-align:center;"></td>
|
2019-08-14 07:44:49 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card my-3">
|
|
|
|
<div class="card-header">
|
2019-09-11 13:33:04 +00:00
|
|
|
<h5 class="card-title">Global {{filter_type}} Trackers</h5>
|
2019-08-14 07:44:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
2019-09-11 13:33:04 +00:00
|
|
|
<table id="table_global_trackers" class="table table-striped table-bordered">
|
2019-08-14 07:44:49 +00:00
|
|
|
<thead class="bg-dark text-white">
|
|
|
|
<tr>
|
|
|
|
<th>Type</th>
|
2019-09-11 13:33:04 +00:00
|
|
|
<th>Tracker</th>
|
2019-08-14 07:44:49 +00:00
|
|
|
<th>First seen</th>
|
|
|
|
<th>Last seen</th>
|
|
|
|
<th>Email notification</th>
|
2019-09-11 13:33:04 +00:00
|
|
|
<th>sparkline</th>
|
2019-08-14 07:44:49 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody style="font-size: 15px;">
|
|
|
|
{% for dict_uuid in global_term %}
|
|
|
|
<tr>
|
|
|
|
<td>{{dict_uuid['type']}}</td>
|
|
|
|
<td>
|
2019-09-11 13:33:04 +00:00
|
|
|
<span><a target="_blank" href="{{ url_for('hunter.show_tracker') }}?uuid={{ dict_uuid['uuid'] }}">{{dict_uuid['term']}}</a></span>
|
2019-08-14 07:44:49 +00:00
|
|
|
<div>
|
|
|
|
{% for tag in dict_uuid['tags'] %}
|
|
|
|
<a href="{{ url_for('Tags.Tags_page') }}?ltags={{ tag }}">
|
|
|
|
<span class="badge badge-{{ bootstrap_label[loop.index0 % 5] }}">{{ tag }}</span>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if dict_uuid['first_seen'] %}
|
|
|
|
{{dict_uuid['first_seen'][0:4]}}/{{dict_uuid['first_seen'][4:6]}}/{{dict_uuid['first_seen'][6:8]}}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if dict_uuid['last_seen'] %}
|
|
|
|
{{dict_uuid['last_seen'][0:4]}}/{{dict_uuid['last_seen'][4:6]}}/{{dict_uuid['last_seen'][6:8]}}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% for mail in dict_uuid['mails'] %}
|
|
|
|
{{ mail }}<br>
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
2019-09-11 13:33:04 +00:00
|
|
|
<td id="sparklines_{{ dict_uuid['uuid'] }}" style="text-align:center;"></td>
|
2019-08-14 07:44:49 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
2019-09-11 13:33:04 +00:00
|
|
|
$("#page-Tracker").addClass("active");
|
|
|
|
$("#nav_tracker_{{filter_type}}").addClass("active");
|
|
|
|
|
|
|
|
$('#table_user_trackers').DataTable({
|
2019-08-14 07:44:49 +00:00
|
|
|
"aLengthMenu": [[5, 10, 15, -1], [5, 10, 15, "All"]],
|
|
|
|
"iDisplayLength": 10,
|
|
|
|
"order": [[ 0, "desc" ]]
|
|
|
|
});
|
2019-09-11 13:33:04 +00:00
|
|
|
$('#table_global_trackers').DataTable({
|
2019-08-14 07:44:49 +00:00
|
|
|
"aLengthMenu": [[5, 10, 15, -1], [5, 10, 15, "All"]],
|
|
|
|
"iDisplayLength": 10,
|
|
|
|
"order": [[ 0, "desc" ]]
|
|
|
|
});
|
2019-09-11 13:33:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
{% for dict_uuid in user_term %}
|
|
|
|
sparkline("sparklines_{{ dict_uuid['uuid'] }}", {{ dict_uuid['sparkline'] }}, {height: 40});
|
|
|
|
{% endfor %}
|
|
|
|
{% for dict_uuid in global_term %}
|
|
|
|
sparkline("sparklines_{{ dict_uuid['uuid'] }}", {{ dict_uuid['sparkline'] }}, {height: 40});
|
|
|
|
{% endfor %}
|
|
|
|
|
2019-08-14 07:44:49 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
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')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|