-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the Audit Trails views (#17104)
- Loading branch information
1 parent
ef644be
commit a7a6675
Showing
11 changed files
with
66 additions
and
61 deletions.
There are no files selected for viewing
14 changes: 8 additions & 6 deletions
14
...OrchardCore.Modules/OrchardCore.AuditTrail/Views/AuditTrailEventDetail.DetailAdmin.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/OrchardCore.Modules/OrchardCore.Users/AuditTrail/Models/AuditTrailUserEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
namespace OrchardCore.Users.AuditTrail.Models; | ||
|
||
// TODO a future version should also record the User state, enabling diff against users | ||
public class AuditTrailUserEvent | ||
{ | ||
// TODO a future version should also record the User state, enabling diff against users | ||
public string Name { get; set; } = "User"; | ||
|
||
public string UserName { get; set; } | ||
|
||
public string UserId { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
...ore.Modules/OrchardCore.Users/AuditTrail/ViewModels/AuditTrailUserEventDetailViewModel.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
...rdCore.Modules/OrchardCore.Users/Views/Items/AuditTrailUserEventDetail.DetailAdmin.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
@model AuditTrailUserEventDetailViewModel | ||
@model AuditTrailUserEventViewModel | ||
|
||
<table class="table table-sm table-hover mb-0"> | ||
<h2 class="h3">@T["User Info"]</h2> | ||
|
||
<table class="table table-sm table-hover"> | ||
<tbody> | ||
<tr> | ||
<th class="border-top-0 w-25">@T["User Id"]</th> | ||
<td class="border-top-0">@Model.UserId</td> | ||
<th class="w-25">@T["User ID"]</th> | ||
<td>@Model.UserEvent.UserId</td> | ||
</tr> | ||
<tr> | ||
<th>@T["User Name"]</th> | ||
<td>@Model.UserName</td> | ||
<th>@T["Username"]</th> | ||
<td>@Model.UserEvent.UserName</td> | ||
</tr> | ||
</tbody> | ||
</table> |