{% extends "base.html" %} {% load static %} {% block title %} Management Commands {% endblock title %} {% block extra_head %} {# Removed custom CSS styles in favor of Tailwind classes #} {% endblock extra_head %} {% block content %} {% include "includes/sidenav.html" %}

Management Commands

{% if not request.user.is_superuser %}
Note: Only superusers can run management commands. You can view the command history but cannot execute commands.
{% endif %} {% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %}
{% for command in commands %} {% if command.arguments %} {% endif %} {% endfor %}
Command {% if sort == 'name' %} {% elif sort == '-name' %} {% endif %} Description Last Run {% if sort == 'last_run' %} {% elif sort == '-last_run' %} {% endif %} Status {% if sort == 'status' %} {% elif sort == '-status' %} {% endif %} Run Count {% if sort == 'run_count' %} {% elif sort == '-run_count' %} {% endif %} 30 Day Activity {% if sort == 'activity' %} {% elif sort == '-activity' %} {% endif %} Actions
{{ command.name }} {% if command.arguments %} {% endif %}
{{ command.help_text }} {% if command.last_run %} {{ command.last_run|timesince }} ago {% else %} Never {% endif %} {% if command.last_run %} {% if command.last_success %} Success {% else %} Failed {% endif %} {% else %} Not Run {% endif %} {{ command.run_count|default:"0" }} {% if command.stats_data %}
{% for data in command.stats_data %}
{% endfor %}
Max: {{ command.max_value }}
{% else %}
No data
{% endif %}
{% if request.user.is_superuser %} {% if command.arguments %} {% else %}
{% csrf_token %}
{% endif %} {% else %} Superuser only {% endif %}
{% endblock content %}