| 1 |
{% if logs %} |
| 2 |
{% for log in logs %} |
| 3 |
{% if type == 'quarantine' %} |
| 4 |
<div class="antivirus-quarantine__btn" role="button" tabindex="0"> |
| 5 |
<div class="antivirus-quarantine__item"> |
| 6 |
<div class="antivirus-quarantine__item-preview"> |
| 7 |
<div class="antivirus-quarantine__item-info"> |
| 8 |
<p class="antivirus-quarantine__item-name">{{ log.file_path }}{{ log.file_name }}</p> |
| 9 |
<p class="antivirus-quarantine__item-path"></p> |
| 10 |
</div> |
| 11 |
<div class="antivirus-quarantine__item-actions"> |
| 12 |
<button class="antivirus-quarantine__item-btn remove_from_quarantine" data-file-id="{{ log.id }}"> |
| 13 |
<img width="18px" height="18px" src="{{ images_path }}icon_restore.svg" class="svg-icon"> |
| 14 |
</button> |
| 15 |
</div> |
| 16 |
</div> |
| 17 |
</div> |
| 18 |
</div> |
| 19 |
{% else %} |
| 20 |
<div class="antivirus-quarantine__btn" role="button" tabindex="0" data-id="{{ log.id }}"> |
| 21 |
<div class="antivirus-quarantine__item wt_infected__item"> |
| 22 |
<div class="antivirus-quarantine__item-preview"> |
| 23 |
<div class="antivirus-quarantine__item-info"> |
| 24 |
<p class="antivirus-quarantine__item-name">{{ log.file_path }}{{ log.file_name }}</p> |
| 25 |
<p class="antivirus-quarantine__item-path">{{ log.description }}</p> |
| 26 |
</div> |
| 27 |
<div class="antivirus-quarantine__item-actions"> |
| 28 |
{% if type != 'infected_ajax' %} |
| 29 |
<button class="antivirus-quarantine__item-btn add_to_quarantine" data-file-id="{{ log.id }}"> |
| 30 |
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide-icon lucide lucide-plus size-5"><!----><path d="M5 12h14"></path><!----><path d="M12 5v14"></path><!----><!----><!----></svg> |
| 31 |
<span>{{ 'Move to quarantine'|trans }}</span> |
| 32 |
</button> |
| 33 |
{# {% else %}#} |
| 34 |
{# <img width="18px" height="18px" src="{{ images_path }}icon_arrow.svg" class="svg-icon antivirus-quarantine__item-chevron">#} |
| 35 |
{% endif %} |
| 36 |
|
| 37 |
<img width="18px" height="18px" src="{{ images_path }}icon_arrow.svg" class="svg-icon antivirus-quarantine__item-chevron"> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
|
| 41 |
{# {% if type == 'infected_ajax' %}#} |
| 42 |
<div class="antivirus-quarantine__item-full visually-hidden"> |
| 43 |
<div class="antivirus-quarantine__item-entry"> |
| 44 |
<table class="antivirus-quarantine__item-table"> |
| 45 |
<thead> |
| 46 |
<tr> |
| 47 |
<th>{{ 'Row'|trans }}</th> |
| 48 |
<th>{{ 'Signature'|trans }}</th> |
| 49 |
</tr> |
| 50 |
</thead> |
| 51 |
<tbody> |
| 52 |
<tr> |
| 53 |
<td>{{ log.row }}</td> |
| 54 |
<td>{{ log.signature }}</td> |
| 55 |
</tr> |
| 56 |
</tbody> |
| 57 |
</table> |
| 58 |
<div class="antivirus-quarantine__item-description"> |
| 59 |
<p class="antivirus-quarantine__item-title">{{ 'Description'|trans }}</p> |
| 60 |
<p class="antivirus-quarantine__item-content">{{ log.description }}</p> |
| 61 |
</div> |
| 62 |
</div> |
| 63 |
</div> |
| 64 |
{# {% endif %}#} |
| 65 |
</div> |
| 66 |
</div> |
| 67 |
{% endif %} |
| 68 |
{% endfor %} |
| 69 |
|
| 70 |
{% else %} |
| 71 |
<!-- No data block --> |
| 72 |
<div class="antivirus-quarantine__nodata"> |
| 73 |
<div class="antivirus-quarantine__nodata-icon-container"> |
| 74 |
<img width="24px" height="24px" src="{{ images_path }}icon_shield_blue.svg" class="svg-icon"> |
| 75 |
</div> |
| 76 |
|
| 77 |
{% if type == 'quarantine' %} |
| 78 |
<p class="antivirus-quarantine__nodata-title">{{ 'No files in quarantine'|trans }}</p> |
| 79 |
<p class="antivirus-quarantine__nodata-description"> </p> |
| 80 |
{% else %} |
| 81 |
<p class="antivirus-quarantine__nodata-title">{{ 'No infected files found'|trans }}</p> |
| 82 |
<p class="antivirus-quarantine__nodata-description">{{ 'They are most likely in quarantine'|trans }}</p> |
| 83 |
{% endif %} |
| 84 |
</div> |
| 85 |
{% endif %} |