2023-08-18 09:05:21 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
2023-11-08 09:31:51 +00:00
|
|
|
<title>Chat Message - AIL</title>
|
2023-08-18 09:05:21 +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">
|
2023-11-08 14:46:05 +00:00
|
|
|
<link href="{{ url_for('static', filename='css/tags.css') }}" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="{{ url_for('static', filename='css/ail-project.css') }}" rel="stylesheet">
|
2023-08-18 09:05:21 +00:00
|
|
|
|
|
|
|
<!-- 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>
|
2023-11-08 14:46:05 +00:00
|
|
|
<script src="{{ url_for('static', filename='js/tags.js') }}"></script>
|
2023-08-18 09:05:21 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
.chat-message-left,
|
|
|
|
.chat-message-right {
|
|
|
|
display: flex;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
.chat-message-right {
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
margin-left: auto
|
|
|
|
}
|
2023-11-08 14:46:05 +00:00
|
|
|
.divider:after,
|
|
|
|
.divider:before {
|
|
|
|
content: "";
|
|
|
|
flex: 1;
|
|
|
|
height: 2px;
|
|
|
|
background: #eee;
|
|
|
|
}
|
2023-08-18 09:05:21 +00:00
|
|
|
</style>
|
|
|
|
</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">
|
|
|
|
<h3 class="text-secondary">{{ meta["id"] }} :</h3>
|
|
|
|
<ul class="list-group mb-2">
|
|
|
|
<li class="list-group-item py-0">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-10">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2023-11-08 14:46:05 +00:00
|
|
|
<th></th>
|
|
|
|
<th>Date</th>
|
2023-11-02 15:28:33 +00:00
|
|
|
<th>Username</th>
|
2023-08-18 09:05:21 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<svg height="26" width="26">
|
|
|
|
<g class="nodes">
|
|
|
|
<circle cx="13" cy="13" r="13" fill="{{ meta["icon"]["color"] }}"></circle>
|
|
|
|
<text x="13" y="13" text-anchor="middle" dominant-baseline="central" class="graph_node_icon {{ meta["icon"]["style"] }}" font-size="16px">{{ meta["icon"]["icon"] }}</text>
|
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
{{ meta["subtype"] }}
|
|
|
|
</td>
|
2023-11-08 14:46:05 +00:00
|
|
|
<td>{{ meta['full_date'] }}</td>
|
2023-11-02 15:28:33 +00:00
|
|
|
<td>
|
2023-11-08 14:46:05 +00:00
|
|
|
{% if 'username' in meta['user-account'] %}
|
|
|
|
{{ meta['user-account']['username']['id'] }}
|
2023-11-02 15:28:33 +00:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
2023-08-18 09:05:21 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-1">
|
|
|
|
<div id="sparkline"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
2023-11-08 14:46:05 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<h5>
|
|
|
|
<span>
|
|
|
|
{% include 'modals/edit_tag.html' %}
|
|
|
|
|
2023-08-18 09:05:21 +00:00
|
|
|
{% for tag in meta['tags'] %}
|
|
|
|
<button class="btn btn-{{ bootstrap_label[loop.index0 % 5] }}" data-toggle="modal" data-target="#edit_tags_modal"
|
2023-11-08 14:46:05 +00:00
|
|
|
data-tagid="{{ tag }}" data-objtype="{{ meta['type'] }}" data-objsubtype="" data-objid="{{ meta['id'] }}">
|
2023-08-18 09:05:21 +00:00
|
|
|
{{ tag }}
|
|
|
|
</button>
|
|
|
|
{% endfor %}
|
2023-11-08 14:46:05 +00:00
|
|
|
{% include 'modals/add_tags.html' %}
|
2023-08-18 09:05:21 +00:00
|
|
|
<button type="button" class="btn btn-light" data-toggle="modal" data-target="#add_tags_modal">
|
|
|
|
<i class="far fa-plus-square"></i>
|
|
|
|
</button>
|
2023-11-08 14:46:05 +00:00
|
|
|
</span>
|
|
|
|
</h5>
|
|
|
|
</div>
|
2023-08-18 09:05:21 +00:00
|
|
|
|
2023-11-08 14:46:05 +00:00
|
|
|
<div class="d-flex flex-row-reverse bd-highlight">
|
|
|
|
<div>
|
|
|
|
<a href="{{ url_for('correlation.show_correlation')}}?type={{ meta['type'] }}&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>
|
2023-08-18 09:05:21 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2023-11-02 15:28:33 +00:00
|
|
|
<div class="position-relative">
|
2023-11-08 09:31:51 +00:00
|
|
|
<div class="chat-messages p-2">
|
2023-11-02 15:28:33 +00:00
|
|
|
|
2023-11-08 14:46:05 +00:00
|
|
|
<div class="divider d-flex align-items-center mb-4">
|
|
|
|
<p class="text-center h2 mx-3 mb-0" style="color: #a2aab7;">
|
|
|
|
<span class="badge badge-secondary mb-2" id="date_section_{{ meta['date'] }}">{{ meta['date'] }}</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
2023-11-02 15:28:33 +00:00
|
|
|
|
|
|
|
<div class="chat-message-left pb-1">
|
|
|
|
<div>
|
2023-11-08 09:31:51 +00:00
|
|
|
<img src="{{ url_for('static', filename='image/ail-icon.png') }}" class="rounded-circle mr-1" alt="{{ meta['user-account']['id'] }}" width="40" height="40">
|
|
|
|
<div class="text-muted small text-nowrap mt-2">{{ meta['hour'] }}</div>
|
2023-11-02 15:28:33 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex-shrink-1 bg-light rounded py-2 px-3 ml-4 pb-4" style="overflow-x: auto">
|
|
|
|
<div class="font-weight-bold mb-1">
|
2023-11-08 09:31:51 +00:00
|
|
|
{% if meta['user-account']['username'] %}
|
|
|
|
{{ meta['user-account']['username']['id'] }}
|
2023-11-02 15:28:33 +00:00
|
|
|
{% else %}
|
2023-11-08 09:31:51 +00:00
|
|
|
{{ meta['user-account']['id'] }}
|
2023-11-02 15:28:33 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-11-08 09:31:51 +00:00
|
|
|
{% if meta['reply_to'] %}
|
|
|
|
<div class="flex-shrink-1 bg-white border rounded py-2 px-3 ml-4 mb-3" style="overflow-x: auto">
|
2023-08-28 14:29:38 +00:00
|
|
|
<div class="font-weight-bold mb-1">
|
2023-11-08 09:31:51 +00:00
|
|
|
{% if meta['reply_to']['user-account']['username'] %}
|
|
|
|
{{ meta['reply_to']['user-account']['username']['id'] }}
|
2023-08-28 14:29:38 +00:00
|
|
|
{% else %}
|
2023-11-08 09:31:51 +00:00
|
|
|
{{ meta['reply_to']['user-account']['id'] }}
|
2023-08-28 14:29:38 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-11-08 09:31:51 +00:00
|
|
|
<pre class="my-0">{{ meta['reply_to']['content'] }}</pre>
|
|
|
|
{% for tag in meta['reply_to']['tags'] %}
|
2023-11-02 15:28:33 +00:00
|
|
|
<span class="badge badge-{{ bootstrap_label[loop.index0 % 5] }}">{{ tag }}</span>
|
|
|
|
{% endfor %}
|
2023-11-08 09:31:51 +00:00
|
|
|
<div class="text-muted small text-nowrap">{{ meta['reply_to']['full_date'] }}</div>
|
2023-08-18 09:05:21 +00:00
|
|
|
{# <div class="">#}
|
|
|
|
{# <a class="btn btn-light btn-sm text-secondary py-0" href="{{ url_for('correlation.show_correlation')}}?type={{ mess['reply_to']['type'] }}&subtype={{ mess['reply_to']['subtype'] }}&id={{ mess['reply_to']['id'] }}"><i class="fas fa-project-diagram"></i></a>#}
|
|
|
|
{# <a class="btn btn-light btn-sm text-secondary py-0" href="{{ mess['reply_to']['link'] }}"><i class="fas fa-eye"></i></a>#}
|
|
|
|
{# </div>#}
|
|
|
|
</div>
|
2023-11-02 15:28:33 +00:00
|
|
|
{% endif %}
|
2023-11-08 09:31:51 +00:00
|
|
|
<pre class="my-0">{{ meta['content'] }}</pre>
|
|
|
|
{% for tag in meta['tags'] %}
|
2023-11-02 15:28:33 +00:00
|
|
|
<span class="badge badge-{{ bootstrap_label[loop.index0 % 5] }}">{{ tag }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
<div class="">
|
2023-11-08 09:31:51 +00:00
|
|
|
<a class="btn btn-light btn-sm text-secondary px-1" href="{{ url_for('correlation.show_correlation')}}?type={{ meta['type'] }}&subtype={{ meta['subtype'] }}&id={{ meta['id'] }}"><i class="fas fa-project-diagram"></i></a>
|
2023-08-18 09:05:21 +00:00
|
|
|
</div>
|
2023-11-02 15:28:33 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-08-18 09:05:21 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var chart = {};
|
|
|
|
$(document).ready(function(){
|
|
|
|
$("#page-Decoded").addClass("active");
|
|
|
|
$("#nav_chat").addClass("active");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
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>
|