[Fix] Show the User who ran the Job for Admins (#226)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#226
This commit is contained in:
2025-11-20 08:05:15 +13:00
parent 67b1baa5b0
commit fa8a191383
2 changed files with 9 additions and 1 deletions

View File

@ -29,7 +29,7 @@ urlpatterns = [
path("o/", include("oauth2_provider.urls", namespace="oauth2_provider")),
]
if "migrations" in s.INSTALLED_APPS:
if "migration" in s.INSTALLED_APPS:
urlpatterns.append(path("", include("migration.urls")))
if s.MS_ENTRA_ENABLED:

View File

@ -34,6 +34,9 @@
<div class="panel-body list-group-item" id="job-content">
<table class="table-bordered table-hover table">
<tr style="background-color: rgba(0, 0, 0, 0.08);">
{% if meta.user.is_superuser %}
<th scope="col">User</th>
{% endif %}
<th scope="col">ID</th>
<th scope="col">Name</th>
<th scope="col">Status</th>
@ -44,6 +47,11 @@
<tbody>
{% for job in jobs %}
<tr>
{% if meta.user.is_superuser %}
<td>
<a href="{{ job.user.url }}">{{ job.user.username }}</a>
</td>
{% endif %}
<td>{{ job.task_id }}</td>
<td>{{ job.job_name }}</td>
<td>{{ job.status }}</td>