forked from enviPath/enviPy
[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:
@ -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:
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user