-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chg: [chat] add chat default + basic card
- Loading branch information
Showing
11 changed files
with
189 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<style> | ||
.object_image { | ||
filter: blur(5px); | ||
} | ||
</style> | ||
|
||
<div class="card"> | ||
<div class="card-header"> | ||
<h4 class="text-secondary mb-0"> | ||
<svg height="30" width="30"> | ||
<g class="nodes"> | ||
<circle cx="15" cy="15" r="15" fill="{{ meta["svg_icon"]["color"] }}"></circle> | ||
<text x="15" y="15" text-anchor="middle" dominant-baseline="central" class="{{ meta["svg_icon"]["style"] }}" font-size="16px">{{ meta["svg_icon"]["icon"] }}</text> | ||
</g> | ||
</svg> | ||
{% if meta['username'] %}{{ meta["username"]["id"] }} {% else %} {{ meta['name'] }}{% endif %} : | ||
</h4> | ||
</div> | ||
<div class="card-body py-0"> | ||
<span class=""> | ||
{% if meta["tags_safe"] %} | ||
{% if meta['icon'] %} | ||
<span><img src="{{ url_for('objects_image.image', filename=meta['icon'])}}" class="my-1" alt="{{ meta['id'] }}" width="200" height="200"></span> | ||
{% endif %} | ||
{% else %} | ||
<span class="my-2 fa-stack fa-8x"> | ||
<i class="fas fa-stack-1x fa-image"></i> | ||
<i class="fas fa-stack-2x fa-ban" style="color:Red"></i> | ||
</span> | ||
{% endif %} | ||
</span> | ||
|
||
<span> | ||
<span class="badge badge-dark"> | ||
<span class="badge badge-info" style="font-size: 0.8rem;"> | ||
<i class="fas fa-hourglass-start"></i> | ||
</span> | ||
{{meta["first_seen"]}} | ||
<span class="badge badge-light mx-1" style="font-size: 1rem;"> | ||
<i class="far fa-calendar-alt"></i> | ||
</span> | ||
{{meta["last_seen"]}} | ||
<span class="badge badge-secondary" style="font-size: 0.8rem;"> | ||
<i class="fas fa-hourglass-end"></i> | ||
</span> | ||
</span> | ||
<span class="badge badge-dark"> | ||
<span class="badge badge-info" style="font-size: 0.8rem;"> | ||
<i class="far fa-comments"></i> | ||
</span> | ||
{{meta["nb_subchannels"]}} | ||
<span class="badge badge-info" style="font-size: 0.8rem;"> | ||
<i class="fas fa-user-circle"></i> | ||
</span> | ||
{{meta["nb_participants"]}} | ||
</span> | ||
</span> | ||
|
||
<div class=""> | ||
{% for tag in meta['tags'] %} | ||
<span class="badge badge-{{ bootstrap_label[loop.index0 % 5] }}">{{ tag }}</span> | ||
{% endfor %} | ||
</div> | ||
|
||
</div> | ||
{% include 'objects/block_object_footer_small.html' %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<link href="{{ url_for('static', filename='css/tags.css') }}" rel="stylesheet" type="text/css" /> | ||
<script src="{{ url_for('static', filename='js/tags.js') }}"></script> | ||
|
||
{% with modal_add_tags=ail_tags %} | ||
{% include 'modals/add_tags.html' %} | ||
{% endwith %} | ||
|
||
{% include 'modals/edit_tag.html' %} | ||
|
||
|
||
<div class="card my-1"> | ||
<div class="card-header"> | ||
<h4 class="text-secondary">{% if meta['username'] %}{{ meta["username"]["id"] }} {% else %} {{ meta['name'] }}{% endif %} :</h4> | ||
{% if meta['icon'] %} | ||
<div><img src="{{ url_for('objects_image.image', filename=meta['icon'])}}" class="mb-2" alt="{{ meta['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>{{ meta['name'] }}</td> | ||
<td>{{ meta['id'] }}</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_subchannels'] }}</td> | ||
<td> | ||
<a href="{{ url_for('chats_explorer.chats_explorer_chat_participants')}}?type=chat&subtype={{ meta['subtype'] }}&id={{ meta['id'] }}"><i class="far fa-user-circle"></i> {{ meta['nb_participants']}}</a> | ||
</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 class="m-1"> | ||
<pre class="my-0 text-secondary">{{ meta['translation_info'] }}</pre> | ||
{% endif %} | ||
</li> | ||
{% endif %} | ||
|
||
<li class="list-group-item py-0"> | ||
<div class="my-2"> | ||
Tags: | ||
{% for tag in meta['tags'] %} | ||
<button class="btn btn-{{ bootstrap_label[loop.index0 % 5] }}" | ||
data-toggle="modal" data-target="#edit_tags_modal" | ||
data-tagid="{{ tag }}" data-objtype="{{ meta['type'] }}" data-objsubtype="{{ meta['subtype'] }}" data-objid="{{ meta["id"] }}"> | ||
{{ tag }} | ||
</button> | ||
{% endfor %} | ||
<button type="button" class="btn btn-light" data-toggle="modal" data-target="#add_tags_modal"> | ||
<i class="far fa-plus-square"></i> | ||
</button> | ||
</div> | ||
</li> | ||
</ul> | ||
|
||
{% with obj_type=meta['type'], obj_id=meta['id'], obj_subtype=meta['subtype'] %} | ||
{% include 'modals/investigations_register_obj.html' %} | ||
{% endwith %} | ||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#investigations_register_obj_modal"> | ||
<i class="fas fa-microscope"></i> Investigations | ||
</button> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters