HOME


sh-3ll 1.0
DIR:/proc/thread-self/root/opt/cpguard/app/resources/email_templates/daily_report/
Upload File :
Current File : //proc/thread-self/root/opt/cpguard/app/resources/email_templates/daily_report/firewall.html
<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;">Firewall
                Temporary Bans</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>&nbsp;
                    </h2>
                  </td>
                </tr>
              </table>

              <table width="400" border="0" style="border-collapse: collapse;">
                <tr>
                  <td width="40%"
                    style="font-weight: 400; font-size: 14px; line-height: 26px; color: #9aa0a6; font-family: Roboto, sans-serif;">
                    Country
                  </td>
                  <td width="40%"
                    style="font-weight: 400; font-size: 14px; line-height: 26px; color: #9aa0a6; font-family: Roboto, sans-serif;">
                    IP
                  </td>
                  <td width="20%"
                    style="font-weight: 400; font-size: 14px; line-height: 26px; color: #9aa0a6; font-family: Roboto, sans-serif;">
                    Banned count
                  </td>
                </tr>

                {% for country_code, ip_list in firewall_summary.scanner_summary %}
                {% set country_name = firewall_summary.countries[country_code|upper]|default(country_code|upper) %}
                {% set last_country = loop.last %}
                {% set border = last_country ? '' : 'border-bottom: solid 1px #e3e5e6;' %}

                {% if ip_list is iterable %}
                {% for ip, count in ip_list %}
                <tr>
                  {% if loop.first %}
                  <td rowspan="{{ ip_list|length }}"
                    style="font-weight: 600; font-size: 16px; line-height: 26px; color: #5F6368; padding: 5px; font-family: Roboto, sans-serif; vertical-align: middle; {{ border }}">
                    {{ country_name }}
                  </td>
                  {% endif %}
                  <td style="padding: 5px; font-size: 14px; color: #5F6368; {{ border }}">
                    {{ ip }}
                  </td>
                  <td style="padding: 5px; text-align: center; {{ border }}">
                    <div
                      style="border-radius:8px; color:#202124; height:30px; line-height:30px; text-align:center; width:50px; background:#8ab4f8; margin:auto;">
                      {{ count }}
                    </div>
                  </td>
                </tr>
                {% endfor %}
                {% endif %}
                {% endfor %}
              </table>

            </td>
          </tr>
          <tr>
            <td height=" 20" style="height: 20px;">&nbsp;
            </td>
          </tr>


        </tbody>
      </table>
    </td>
  </tr>
  <tr>
    <td colspan="3" bgcolor="#F4F5F8" style="line-height: 10px;">
      <img alt="" height="10" src="https://opsshield.com/assets/mail/space.gif" style="display:block;" width="1"
        border="0" />
    </td>
  </tr>
</table>