fix: [UI showDomain] fix screenshot accordeon

This commit is contained in:
Terrtia 2019-12-18 16:45:44 +01:00
parent 7dbc96cee2
commit 66f251d654
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -277,29 +277,29 @@
<div class="row">
<div class="col-11">
<div class="mt-2">
<i class="fas fa-lock-open"></i> Screenshot&nbsp;&nbsp;
<i class="far fa-image"></i></i> Screenshot&nbsp;&nbsp;
<div class="badge badge-warning">{{dict_domain['screenshot']|length}}</div>
</div>
</div>
<div class="col-1">
<button class="btn btn-link collapsed rotate" data-toggle="collapse" data-target="#collapseScreenshot" aria-expanded="false" aria-controls="collapseDecoded">
<button class="btn btn-link collapsed rotate" data-toggle="collapse" data-target="#collapseScreenshot" aria-expanded="false" aria-controls="collapseScreenshot">
<i class="fas fa-chevron-circle-down"></i>
</button>
</div>
</div>
</div>
<div id="collapseDecoded" class="collapse" aria-labelledby="headingDecoded" data-parent="#accordiondecoded">
<div id="collapseScreenshot" class="collapse" aria-labelledby="headingScreenshot" data-parent="#accordionscreenshot">
<div class="card-body">
<table id="tabledecoded" class="table table-striped">
<table id="tablescreenshot" class="table table-striped">
<thead class="thead-dark">
<tr>
<th>Decoded</th>
<th>Screenshot</th>
</tr>
</thead>
<tbody>
{% for decoded in dict_domain['decoded']%}
{% for screenshot in dict_domain['screenshot']%}
<tr>
<td><a target="_blank" href="{{ url_for('correlation.show_correlation') }}?object_type=decoded&correlation_id={{ decoded }}&correlation_objects=domain">{{ decoded }}</a></td>
<td><a target="_blank" href="{{ url_for('correlation.show_correlation') }}?object_type=screenshot&correlation_id={{ screenshot }}&correlation_objects=domain">{{ screenshot }}</a></td>
</tr>
{% endfor %}
</tbody>
@ -454,6 +454,9 @@
{% if 'decoded' in dict_domain%}
$('#tabledecoded').DataTable();
{% endif %}
{% if 'screenshot' in dict_domain%}
$('#tablescreenshot').DataTable();
{% endif %}
{% if 'pgp' in dict_domain%}
$('#tablepgp').DataTable();
{% endif %}