mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 08:17:17 +00:00
175 lines
8.1 KiB
HTML
175 lines
8.1 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
|
||
|
<head>
|
||
|
<title>Chats Protocols - 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">#} TODO CHAT abstract metadata
|
||
|
{##}
|
||
|
{# <div class="card-header" style="background-color:#d9edf7;font-size: 15px">#}
|
||
|
{# <h4 class="text-secondary">{% if chat['username'] %}{{ chat["username"]["id"] }} {% else %} {{ chat['name'] }}{% endif %} :</h4>#}
|
||
|
{# {% if chat['icon'] %}#}
|
||
|
{# <div><img src="{{ url_for('objects_image.image', filename=chat['icon'])}}" class="mb-2" alt="{{ chat['id'] }}" width="200" height="200"></div>#}
|
||
|
{# {% endif %}#}
|
||
|
{# <ul class="list-group mb-2">#}
|
||
|
{# <li class="list-group-item py-0">#}
|
||
|
{# <table class="table">#}
|
||
|
{# <thead class="">#}
|
||
|
{# <tr>#}
|
||
|
{# <th>Name</th>#}
|
||
|
{# <th>ID</th>#}
|
||
|
{# <th>Created at</th>#}
|
||
|
{# <th>First Seen</th>#}
|
||
|
{# <th>Last Seen</th>#}
|
||
|
{# <th>NB Sub-Channels</th>#}
|
||
|
{# <th>Participants</th>#}
|
||
|
{# </tr>#}
|
||
|
{# </thead>#}
|
||
|
{# <tbody style="font-size: 15px;">#}
|
||
|
{# <tr>#}
|
||
|
{# <td>{{ chat['name'] }}</td>#}
|
||
|
{# <td>{{ chat['id'] }}</td>#}
|
||
|
{# <td>{{ chat['created_at'] }}</td>#}
|
||
|
{# <td>#}
|
||
|
{# {% if chat['first_seen'] %}#}
|
||
|
{# {{ chat['first_seen'][0:4] }}-{{ chat['first_seen'][4:6] }}-{{ chat['first_seen'][6:8] }}#}
|
||
|
{# {% endif %}#}
|
||
|
{# </td>#}
|
||
|
{# <td>#}
|
||
|
{# {% if chat['last_seen'] %}#}
|
||
|
{# {{ chat['last_seen'][0:4] }}-{{ chat['last_seen'][4:6] }}-{{ chat['last_seen'][6:8] }}#}
|
||
|
{# {% endif %}#}
|
||
|
{# </td>#}
|
||
|
{# <td>{{ chat['nb_subchannels'] }}</td>#}
|
||
|
{# <td>#}
|
||
|
{# <a href="{{ url_for('chats_explorer.objects_thread_messages')}}?uuid={{ chat['subtype'] }}&id={{ chat['id'] }}"><i class="far fa-user-circle"></i> {{ chat['participants'] | length}}</a>#}
|
||
|
{##}
|
||
|
{# </td>#}
|
||
|
{# </tr>#}
|
||
|
{# </tbody>#}
|
||
|
{# </table>#}
|
||
|
{# {% if chat['info'] %}#}
|
||
|
{# <li class="list-group-item py-0">#}
|
||
|
{# <pre class="my-0">{{ chat['info'] }}</pre>#}
|
||
|
{# </li>#}
|
||
|
{# {% endif %}#}
|
||
|
{# </li>#}
|
||
|
{# </ul>#}
|
||
|
{##}
|
||
|
{# </div>#}
|
||
|
{# </div>#}
|
||
|
|
||
|
|
||
|
<h4>Participants:</h4>
|
||
|
<table id="tableparticipantss" class="table">
|
||
|
<thead class="bg-dark text-white">
|
||
|
<tr>
|
||
|
<th>Icon</th>
|
||
|
<th>Username</th>
|
||
|
<th>ID</th>
|
||
|
<th>info</th>
|
||
|
<th>First Seen</th>
|
||
|
<th>Last Seen</th>
|
||
|
<th>NB Messages</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody style="font-size: 15px;">
|
||
|
{% for user_meta in meta["participants"] %}
|
||
|
<tr>
|
||
|
<td>
|
||
|
<a href="{{ url_for('chats_explorer.objects_user_account')}}?subtype={{ user_meta['subtype'] }}&id={{ user_meta['id'] }}">
|
||
|
<img src="{% if user_meta['icon'] %}{{ url_for('objects_image.image', filename=user_meta['icon'])}}{% else %}{{ url_for('static', filename='image/ail-icon.png') }}{% endif %}"
|
||
|
class="rounded-circle mr-1" alt="{{ user_meta['id'] }}" width="40" height="40">
|
||
|
<a>
|
||
|
</td>
|
||
|
<td>
|
||
|
{% if user_meta['username'] %}
|
||
|
<b>{{ user_meta['username']['id'] }}</b>
|
||
|
{% endif %}
|
||
|
</td>
|
||
|
<td><a href="{{ url_for('chats_explorer.objects_user_account') }}?subtype={{ user_meta['subtype'] }}&id={{ user_meta['id'] }}">{{ user_meta['id'] }}</a></td>
|
||
|
<td>
|
||
|
{% if user_meta['info'] %}
|
||
|
{{ user_meta['info'] }}
|
||
|
{% endif %}
|
||
|
</td>
|
||
|
<td>
|
||
|
{% if user_meta['first_seen'] %}
|
||
|
{{ user_meta['first_seen'][0:4] }}-{{ user_meta['first_seen'][4:6] }}-{{ user_meta['first_seen'][6:8] }}
|
||
|
{% endif %}
|
||
|
</td>
|
||
|
<td>
|
||
|
{% if user_meta['last_seen'] %}
|
||
|
{{ user_meta['last_seen'][0:4] }}-{{ user_meta['last_seen'][4:6] }}-{{ user_meta['last_seen'][6:8] }}
|
||
|
{% endif %}
|
||
|
</td>
|
||
|
<td>{{ user_meta['nb_messages'] }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<script>
|
||
|
$(document).ready(function(){
|
||
|
$("#page-Decoded").addClass("active");
|
||
|
$("#nav_chat").addClass("active");
|
||
|
|
||
|
$('#tableparticipantss').DataTable({
|
||
|
"aLengthMenu": [[5, 10, 15, -1], [5, 10, 15, "All"]],
|
||
|
"iDisplayLength": 10,
|
||
|
"order": [[ 5, "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')
|
||
|
}
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|