mirror of https://github.com/CIRCL/AIL-framework
191 lines
8.6 KiB
HTML
191 lines
8.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>User Account - AIL</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">
|
|
|
|
<!-- JS -->
|
|
<script src="{{ url_for('static', filename='js/jquery.js')}}"></script>
|
|
<script src="{{ url_for('static', filename='js/popper.min.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/heatmap_week_hour.js')}}"></script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
{% include 'nav_bar.html' %}
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
|
|
{% include 'sidebars/sidebar_objects.html' %}
|
|
|
|
<div class="col-12 col-lg-10" id="core_content">
|
|
|
|
<div class="card my-3">
|
|
|
|
<div class="card-header" style="background-color:#d9edf7;font-size: 15px">
|
|
<h4 class="text-secondary">{% if meta['username'] %}{{ meta["username"]["id"] }} {% else %} {{ meta['id'] }}{% endif %} </h4>
|
|
{% if meta['icon'] %}
|
|
<div><img src="{{ url_for('objects_image.image', filename=meta['icon'])}}" class="mb-2" alt="{{ meta['id'] }}" width="250" height="250"></div>
|
|
{% endif %}
|
|
<ul class="list-group mb-2">
|
|
<li class="list-group-item py-0">
|
|
<table class="table">
|
|
<thead class="">
|
|
<tr>
|
|
<th>username</th>
|
|
<th>ID</th>
|
|
<th>First Seen</th>
|
|
<th>Last Seen</th>
|
|
<th>NB Chats</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody style="font-size: 15px;">
|
|
<tr>
|
|
<td>{{ meta['username']['id'] }}</td>
|
|
<td>{{ meta['id'] }}</td>
|
|
<td>
|
|
{% if meta['first_seen'] %}
|
|
{{ meta['first_seen'][0:4] }}-{{ meta['first_seen'][4:6] }}-{{ meta['first_seen'][6:8] }}
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{% if meta['last_seen'] %}
|
|
{{ meta['last_seen'][0:4] }}-{{ meta['last_seen'][4:6] }}-{{ meta['last_seen'][6:8] }}
|
|
{% endif %}
|
|
</td>
|
|
<td>{{ meta['chats'] | length }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{% if meta['info'] %}
|
|
<li class="list-group-item py-0">
|
|
<pre class="my-0">{{ meta['info'] }}</pre>
|
|
{% if meta['translation_info'] %}
|
|
<hr>
|
|
<pre class="my-0 text-secondary">{{ meta['translation_info'] }}</pre>
|
|
{% endif %}
|
|
</li>
|
|
{% endif %}
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="d-flex flex-row-reverse bd-highlight">
|
|
<div>
|
|
<a href="{{ url_for('correlation.show_correlation')}}?type={{ meta['type'] }}&subtype={{ meta['subtype'] }}&id={{ meta['id'] }}" target="_blank">
|
|
<button class="btn btn-lg btn-info"><i class="fas fa-project-diagram"></i> Correlations Graph</button>
|
|
</a>
|
|
</div>
|
|
{# <div>#}
|
|
{# {% with obj_type=meta['type'], obj_id=meta['id'], obj_subtype=''%}#}
|
|
{# {% include 'modals/investigations_register_obj.html' %}#}
|
|
{# {% endwith %}#}
|
|
{# <div class="mr-2">#}
|
|
{# <button type="button" class="btn btn-lg btn-primary" data-toggle="modal" data-target="#investigations_register_obj_modal">#}
|
|
{# <i class="fas fa-microscope"></i> Investigations#}
|
|
{# </button>#}
|
|
{# </div>#}
|
|
{# </div>#}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{% with translate_url=url_for('chats_explorer.objects_user_account', subtype=meta['subtype']), obj_id=meta['id'] %}
|
|
{% include 'chats_explorer/block_translation.html' %}
|
|
{% endwith %}
|
|
|
|
|
|
{# {% if meta['subchannels'] %}#}
|
|
{# <h4>Sub-Channels:</h4>#}
|
|
{# <table id="tablesubchannels" class="table">#}
|
|
{# <thead class="bg-dark text-white">#}
|
|
{# <tr>#}
|
|
{# <th></th>#}
|
|
{# <th></th>#}
|
|
{# <th></th>#}
|
|
{# <th></th>#}
|
|
{# </tr>#}
|
|
{# </thead>#}
|
|
{# <tbody style="font-size: 15px;">#}
|
|
{# {% for meta in meta["subchannels"] %}#}
|
|
{# <tr>#}
|
|
{# <td>#}
|
|
{# <img src="{{ url_for('static', filename='image/ail-icon.png') }}" class="rounded-circle mr-1" alt="{{ meta['id'] }}" width="40" height="40">#}
|
|
{# </td>#}
|
|
{# <td><b>{{ meta['name'] }}</b></td>#}
|
|
{# <td><a href="{{ url_for('metas_explorer.objects_subchannel_messages') }}?uuid={{ meta['subtype'] }}&id={{ meta['id'] }}">{{ meta['id'] }}</a></td>#}
|
|
{# <td>{{ meta['created_at'] }}</td>#}
|
|
{# <td>#}
|
|
{# {% if meta['first_seen'] %}#}
|
|
{# {{ meta['first_seen'][0:4] }}-{{ meta['first_seen'][4:6] }}-{{ meta['first_seen'][6:8] }}#}
|
|
{# {% endif %}#}
|
|
{# </td>#}
|
|
{# <td>#}
|
|
{# {% if meta['last_seen'] %}#}
|
|
{# {{ meta['last_seen'][0:4] }}-{{ meta['last_seen'][4:6] }}-{{ meta['last_seen'][6:8] }}#}
|
|
{# {% endif %}#}
|
|
{# </td>#}
|
|
{# <td>{{ meta['nb_messages'] }}</td>#}
|
|
{# </tr>#}
|
|
{# {% endfor %}#}
|
|
{# </tbody>#}
|
|
{# </table>#}
|
|
{##}
|
|
{# {% endif %}#}
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function(){
|
|
$("#page-Decoded").addClass("active");
|
|
$("#nav_chat").addClass("active");
|
|
|
|
{# {% if meta['subchannels'] %}#}
|
|
{# $('#tablesubchannels').DataTable({#}
|
|
{# "aLengthMenu": [[5, 10, 15, -1], [5, 10, 15, "All"]],#}
|
|
{# "iDisplayLength": 10,#}
|
|
{# "order": [[ 5, "desc" ]]#}
|
|
{# });#}
|
|
{# {% endif %}#}
|
|
});
|
|
|
|
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>
|