{% load i18n %}

<h3>{% trans 'Dear' %}: {{ recipient.name }} [{{ recipient.username }}]</h3>
<hr>
<p>{% trans 'We would like to inform you that a command alert has been triggered with the following details:' %}</p>

<p><strong>{% trans 'Alert details' %}:</strong></p>
<ul>
    <li><strong>{% trans 'User' %}:</strong> [{{ user }}]</li>
    <li><strong>{% trans 'Asset' %}:</strong> [{{ asset }}]</li>
    <li><strong>{% trans 'Account' %}:</strong> [{{ account }}]</li>
    {% if remote_addr %}
        <li><strong>IP:</strong> [{{ remote_addr }}]</li>
    {% endif %}
    {% if login_from %}
        <li><strong>{% trans 'Login from' %}:</strong> [{{ login_from }}]</li>
    {% endif %}
    {% if protocol %}
        <li><strong>{% trans 'Protocol' %}:</strong> [{{ protocol }}]</li>
    {% endif %}
    <li><strong>{% trans 'Risk level' %}:</strong> [{{ risk_level }}]</li>
    <li><strong>{% trans 'Command acl' %}:</strong> [{{ cmd_filter_acl }}]</li>
    <li><strong>{% trans 'Command group' %}:</strong> [{{ cmd_group }}]</li>
    {% if session_url %}
        <li><strong>{% trans 'Session' %}:</strong> <a href="{{ session_url }}" target="_blank">{% trans 'View session' %}</a></li>
    {% endif %}
    <li><strong>{% trans 'Organization' %}:</strong> [{{ org }}]</li>
    <li><strong>{% trans 'Command' %}:</strong> [{{ command }}]</li>
    {% if time %}
        <li><strong>{% trans 'Time' %}:</strong> [{{ time }}]</li>
    {% endif %}
</ul>
<hr>

<p>{% trans 'Please review this command execution to ensure it complies with your organization’s security policies. If you did not authorize this action or notice anything unusual, please take the necessary actions immediately.' %}</p>

<p>{% trans 'Thank you for your attention to this matter' %}！</p>