mirror of https://github.com/CIRCL/AIL-framework
79 lines
2.7 KiB
HTML
79 lines
2.7 KiB
HTML
<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=dict_object['metadata_card']['add_tags_modal']%}#}
|
|
{# {% include 'modals/add_tags.html' %}#}
|
|
{#{% endwith %}#}
|
|
|
|
{% include 'modals/edit_tag.html' %}
|
|
|
|
<div class="card my-3">
|
|
<div class="card-header" style="background-color:#d9edf7;font-size: 15px">
|
|
<h4>{{ dict_object["correlation_id"] }}</h4>
|
|
{{ dict_object }}
|
|
<div class="text-secondary">{{ dict_object["correlation_id"] }}</div>
|
|
<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>
|
|
<th>Object type</th>
|
|
<th>First seen</th>
|
|
<th>Last seen</th>
|
|
<th>Nb seen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<svg height="26" width="26">
|
|
<g class="nodes">
|
|
<circle cx="13" cy="13" r="13" fill="orange"></circle>
|
|
<text x="13" y="13" text-anchor="middle" dominant-baseline="central" class="graph_node_icon {{ dict_object["metadata"]["icon"]["style"] }}" font-size="16px">{{ dict_object["metadata"]["icon"]["icon"] }}</text>
|
|
</g>
|
|
</svg>
|
|
{{ dict_object["object_type"] }}
|
|
</td>
|
|
<td>{{ dict_object["metadata"]['first_seen'] }}</td>
|
|
<td>{{ dict_object["metadata"]['last_seen'] }}</td>
|
|
<td>{{ dict_object["metadata"]['nb_seen'] }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<div id="sparkline"></div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
|
|
<li class="list-group-item py-0">
|
|
<br>
|
|
<div class="mb-3">
|
|
Tags:
|
|
{% for tag in dict_object["metadata"]['tags'] %}
|
|
<button class="btn btn-{{ bootstrap_label[loop.index0 % 5] }}" data-toggle="modal" data-target="#edit_tags_modal"
|
|
data-tagid="{{ tag }}" data-objtype="cookie-name" data-objsubtype="" data-objid="{{ dict_object["correlation_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='cookie-name', obj_id=dict_object['correlation_id'], obj_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>
|
|
|