File: //opt/cpguard/app/resources/email_templates/manual_scan/scanner.html
{% if infected_count > 0 %}
<table border="0" cellpadding="0" cellspacing="0" class="to100pc" width="100%">
<tr>
<td align="center">
<table align="center" bgcolor="white" border="0" cellpadding="0" cellspacing="0" class="to100pc" width="600"
style="max-width: 600px;">
<tbody>
<tr style="-webkit-text-size-adjust: none;">
<td height="16" style="-webkit-text-size-adjust: none;margin: 0;padding: 0;height: 16px;">
<img alt="" height="16" src="https://opsshield.com/assets/mail/space.gif"
style="-webkit-text-size-adjust: none;display: block;margin: 0;padding: 0;border: 0;height: 16px;">
</td>
<!-- spacer -->
</tr>
<tr>
<td align="center" width="76%" style="padding:30px 0 10px 0"><span
style="font-size:18px; line-height:14px; font-family:'Avenir Next', Avenir, Helvetica, sans-serif; color:#BABEC5; font-weight: 500;">INFECTED
FILES FOUND</span>
</td>
</tr>
<!-- T&BP paragraph 1 start -->
<tr style="-webkit-text-size-adjust: none;">
<td align="center"
style="-webkit-text-size-adjust: none; font-family:Roboto, Arial, sans-serif; margin: 0; padding: 0 30px;">
<table width="400" border="0"
style="border-collapse: collapse !important;mso-table-lspace: 0pt !important;mso-table-rspace: 0pt !important;">
<tr>
<td colspan="2">
<h2
style="text-align: center;font-size: 16px;color: #5F6368;font-size: 16px;line-height: 26px;font-weight: bold;font-family: Roboto, sans-serif;">
You can view detailed log in cPGuard console and perform actions on the file<br>
</h2>
</td>
</tr>
</table>
<div style="width: 430px;padding:20px 15px;border: solid 1px #e3e5e6;border-radius: 10px;">
<table width="400" border="0"
style="border-collapse: collapse !important;mso-table-lspace: 0pt !important;mso-table-rspace: 0pt !important;">
<tr>
<td width="81%"
style="-webkit-text-size-adjust: none;font-weight: 400;font-size: 14px;line-height: 26px;color: #9aa0a6;font-family: Roboto, sans-serif;">
Type</td>
<td width="19%"
style="-webkit-text-size-adjust: none;font-weight: 400;font-size: 14px;line-height: 26px;color: #9aa0a6;font-family: Roboto, sans-serif;">
Count</td>
</tr>
{% set scanner_count = 0 %}
{% set no = 0 %}
{% for row in scanner_summary %}
{% set border = (no + 1) == scanner_summary|length ? '' : 'border-bottom: solid 1px #e3e5e6;' %}
<tr>
<td
style="-webkit-text-size-adjust: none; font-weight: 600; font-size: 16px; line-height: 26px; color: #5F6368; padding: 0; font-family: Roboto, sans-serif; {{ border }}">
{{ row.reason }}
</td>
<td style="padding-bottom: 10px; padding-top: 10px; {{ border }}">
<div
style="border-radius:8px; color:#202124; height:46px; line-height:46px; margin:auto 0; text-align: center; width: 46px; background:#8ab4f8;">
{{ row.detection_count }}
</div>
</td>
</tr>
{% set scanner_count = scanner_count + row.detection_count %}
{% endfor %}
SCANNER
</table>
</div>
</td>
</tr>
<tr>
<td align="center">
<div style="font-size:16px;letter-spacing:0.1px;line-height:24px;padding-top:36px;font-family:' Google
Sans',Roboto,Arial,sans-serif;">
List of infected files</div>
<table width="500" border="0"
style="margin-top:25px;border-collapse: collapse !important;mso-table-lspace: 0pt !important;mso-table-rspace: 0pt !important;">
<tr>
<td width="400"
style="padding-left:15px; -webkit-text-size-adjust: none;font-weight: 400;font-size: 14px;line-height: 26px;color: #9aa0a6;border-bottom: solid 1px #e3e5e6;margin: 0 0 20px; padding-bottom: 10px;font-family: Roboto, sans-serif;">
Filename</td>
<td width="100" align="right"
style="-webkit-text-size-adjust: none;font-weight: 400;font-size: 14px;line-height: 26px;color: #9aa0a6;border-bottom: solid 1px #e3e5e6;padding:5px 15px 5px 0;font-family: Roboto, sans-serif;">
Reason</td>
</tr>
<tr>
<td height="10"></td>
<td></td>
</tr>
{% for detection in scanner_detections|slice(0,14) %}
<tr>
{% set virus_img = '' %}
{% if detection.reason == 'Virus File' %}
{% set virus_img = '/virus-file.png' %}
{% elseif detection.reason == 'Binary File' %}
{% set virus_img = '/binary-file.png' %}
{% elseif detection.reason == 'Symbolic Link' %}
{% set virus_img = '/symbolic-link.png' %}
{% elseif detection.reason == 'Suspicious File' %}
{% set virus_img = '/suspicious-file.png' %}
{% endif %}
<td
style="-webkit-text-size-adjust: none;font-weight: 400;word-break: break-all;font-size: 14px;line-height: 20px;color: #5F6368;margin: 0 0 20px;padding:10px 15px;font-family: Roboto, sans-serif;border-bottom: solid 1px #e3e5e6;">
<img src="https://opsshield.com/assets/mail{{ virus_img }}"
style="margin-top:-5px;margin-right:3px;height:16px;" />
{{ detection.path }}
</td>
<td align="right"
style="border-bottom: solid 1px #e3e5e6;padding-bottom: 10px;font-size: 14px;line-height: 20px;padding:5px 15px 5px 0;font-family: Roboto, sans-serif;border-bottom: solid 1px #e3e5e6;">
{{ detection.reason }}</td>
</tr>
{% endfor %}
{% if scanner_detections|length >14 %}
<tr>
<td
style="-webkit-text-size-adjust: none;font-weight: 500;font-size: 14px;line-height: 26px;color: #5F6368;margin: 0 0 20px;padding:5px 15px;font-family: Roboto, sans-serif;border-bottom: solid 1px #e3e5e6;">
and {{ scanner_count- 14 }} more files found</td>
</tr>
{% endif %}
<tr>
<td colspan="2"
style="-webkit-text-size-adjust: none;text-align:right;padding-top:25px;padding-left:25px;">
<a href="#"
style="font-weight: 400;text-decoration:none;font-size: 14px;line-height: 26px;color: #b1b1b1;padding:5px 15px 5px 0;font-family: Roboto, sans-serif;""> </a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=" 20" style="height: 20px;">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="3" bgcolor="#F4F5F8" style="line-height: 10px;">
<img alt="" height="10" src="$assets_url/space.gif" style="display:block;" width="1" border="0" />
</td>
</tr>
</table>
{% endif %}