diff --git a/abogen/web/routes.py b/abogen/web/routes.py index 2f63fe8..618877b 100644 --- a/abogen/web/routes.py +++ b/abogen/web/routes.py @@ -363,8 +363,7 @@ def index() -> str: @web_bp.get("/queue") def queue_page() -> str: - jobs = _service().list_jobs() - return render_template("queue.html", jobs=jobs) + return render_template("queue.html", jobs_panel=_render_jobs_panel()) @web_bp.route("/settings", methods=["GET", "POST"]) diff --git a/abogen/web/templates/queue.html b/abogen/web/templates/queue.html index cebde96..36bdc07 100644 --- a/abogen/web/templates/queue.html +++ b/abogen/web/templates/queue.html @@ -4,6 +4,6 @@ {% block content %}
- {% include "partials/jobs.html" %} + {{ jobs_panel|safe }}
{% endblock %}