fix superadmin page

This commit is contained in:
Graham McIntire 2026-02-07 11:58:56 -06:00
parent 3931a9c14a
commit 8d4333b237
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@
</div>
<.table id="audit-logs" rows={@recent_logs}>
<:col :let={log} label="Action">{log.action}</:col>
<:col :let={log} label="Superuser">{log.superuser && log.superuser.email}</:col>
<:col :let={log} label="User">{log.superuser && log.superuser.email}</:col>
<:col :let={log} label="Target">{log.target_user && log.target_user.email}</:col>
<:col :let={log} label="Time">
{ToweropsWeb.TimeHelpers.format_iso8601(log.inserted_at, @timezone)}

View file

@ -317,7 +317,7 @@
</p>
</div>
<span class="text-xs text-gray-500 dark:text-gray-500 whitespace-nowrap ml-2">
{ToweropsWeb.TimeHelpers.format_time_ago(job.completed_at || job.updated_at)}
{ToweropsWeb.TimeHelpers.format_time_ago(job.completed_at || job.cancelled_at || job.discarded_at || job.inserted_at)}
</span>
</div>
</div>