{% comment %} HTMX partial template for rate limiting card content This allows the rate limiting card to be updated independently without reloading the entire page {% endcomment %} {% if rate_limit_status.enabled %} {% if rate_limit_status.bypassed %}
Rate Limiting Bypassed
You have unlimited command execution privileges.
{% else %}
Commands Remaining
{{ rate_limit_status.remaining }}
Successful Commands Used
{{ rate_limit_status.current_count }}/{{ rate_limit_status.limit }}
Time Window
{{ rate_limit_status.time_window_minutes }} minutes
{{ rate_limit_status.message }}
{% if rate_limit_status.is_exceeded %}
Rate Limit Exceeded
Command execution is blocked. Wait for the time window to reset or contact an administrator.
{% elif rate_limit_status.is_warning %}
Rate Limit Warning
You are approaching the command execution limit. Commands will be blocked if the limit is exceeded.
{% endif %} {% endif %} {% endif %}