mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 01:37:17 +00:00
fix: [UI showDomain] fix screenshot accordeon
This commit is contained in:
parent
7dbc96cee2
commit
66f251d654
1 changed files with 10 additions and 7 deletions
|
@ -277,29 +277,29 @@
|
|||
<div class="row">
|
||||
<div class="col-11">
|
||||
<div class="mt-2">
|
||||
<i class="fas fa-lock-open"></i> Screenshot
|
||||
<i class="far fa-image"></i></i> Screenshot
|
||||
<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 %}
|
||||
|
|
Loading…
Reference in a new issue