{% 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_status == 0 or user_plan == 'user' %} {% include 'include/no_sub.html' %} {% else %}

{{lang.words.service|title()}} | {{lang.words.user|title()}} | {{lang.words.service|title()}} IP | {{lang.words.server|title()}} | {{lang.words.action|title()}} | {{lang.words.date|title()}}
--- | --- | --- | --- | --- | ---
{% for h in history %}
{% 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 }} {% endif %} {% endif %} | {{h.action}} | {{h.date}}
{% endfor %}

{% endif %} {% endblock %}