Audit logging improved. References users, screenshots, packages

This commit is contained in:
Christoph Haas 2021-03-03 23:21:24 +01:00
parent b6dee6b93c
commit 2fef9c7043
12 changed files with 95 additions and 45 deletions

View file

@ -14,16 +14,34 @@
table
thead
tr
th Message
th Level
th Section
th IP
th Message
th Level
th Section
th Package
th Screenshot
th User
th IP
tbody
- @logs.each do |log|
tr
td #{log.message }
td #{log.level }
td #{log.section }
td #{log.message}
td #{log.level}
td #{log.section}
td
- if log.package
= log.package.name
- else
' -
td
- if log.screenshot
= log.screenshot.id
- else
' -
td
- if log.user
= log.user.to_s
- else
' -
td #{log.ip_address}
- else