{% from 'include/input_macros.html' import copy_to_clipboard %} {% extends "base.html" %} {% block title %}{{ lang.menu_links.history.title }} {{ lang.words[service] }}{% endblock %} {% block h2 %}{{ lang.menu_links.history.title }} {{ lang.words[service] }}{% endblock %} {% block content %} {% if user_subscription['user_status'] == 0 or user_subscription['user_plan'] == 'user' %} {% include 'include/no_sub.html' %} {% else %} {% for h in history %} {% endfor %}
{{lang.words.service|title()}} {{lang.words.user|title()}} {{lang.words.service|title()}} IP {%if service == 'cluster' %}{{lang.words.cluster|title()}} {%else%}{{lang.words.server|title()}}{% endif %} {{lang.words.action|title()}} {{lang.words.date|title()}}
{% if h.service is not none %} {{h.service[0].upper()}}{{h.service[1:]}}{% endif %} {% for u in users %} {% if u.user_id == h.user_id %} {{ u.username }} {% endif %} {% endfor %} {{ copy_to_clipboard(id=h.ip, value=h.ip) }} {% if h.server_ip != None %} {% if h.service in ('haproxy', 'nginx', 'apache', 'keepalived') %} {{ h.hostname }} {% elif h.service == 'HA cluster' %} {{h.hostname}} {% endif %} {% endif %} {{h.action}} {{h.date}}
{% endif %} {% endblock %}