{% extends "base.html" %} {% from 'include/input_macros.html' import select %} {% block title %}{{ lang.menu_links.history.title }} {{ smon_name }}{% endblock %} {% block h2 %}{{ lang.menu_links.history.title }} {{ smon_name }}{% endblock %} {% block content %} {% set checking_types = {'1': 'TCP/UDP', '2': 'HTTP', '4': 'Ping', '5': 'DNS'} %} {% if user_subscription['user_status'] == 0 or user_subscription['user_plan'] == 'user' %} {% include 'include/no_sub.html' %} {% else %}
{% for s in smon %}
{% if check_id == 2 %} {{s.url}} {% elif check_id == 1 %} {{s.ip}}:{{s.port}} {% elif check_id == 5 %} {{s.ip}} {{lang.phrases.resource_record_type}}: {{s.record_type|upper()}} {% else %} {{s.smon_id.name}} {% endif %}
{% endfor %}
{{lang.words.checking|title()}} {{lang.words.every}} {{check_interval}} {{lang.words.minutes2}}
{% for s in smon %}

{{lang.words.checking|title()}}

({{lang.words.type|title()}})

{{checking_types[check_id|string()]}}

{{lang.words.response|title()}}

({{lang.words.current|title()}})

{{last_resp_time}}ms

{{lang.words.average2|title()}} {{lang.words.response}}

(24-{{lang.words.hours}})

{{avg_res_time}}ms

{{lang.words.uptime}}

(24-{{lang.words.hours}})

{{uptime}}%

{{lang.words.cert_expire}}

{% if s.smon_id.ssl_expire_date is not none %} {% set ssl_date = s.smon_id.ssl_expire_date.split()[0] %} {% else %} {% set ssl_date = 'N/A' %} {% endif %}

({{ssl_date}})

{{cert_day_diff}} {{lang.words.days}}
{% endfor %}
{% endif %} {% endblock %}