Skip to content

Commit

Permalink
fix columns of sessions page
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed Jan 10, 2024
1 parent a2966fb commit 8e1f00e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions KratosSelfService/Views/Sessions/Sessions.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
{
var info = uaParser.Parse(device.UserAgent);
<p>
@info.Device.Family on @info.OS
@device.IpAddress
@(string.IsNullOrWhiteSpace(device.Location) ? "" : $"({device.Location})")
@info.Device.ToString() on @info.OS
(@device.IpAddress
@(string.IsNullOrWhiteSpace(device.Location) ? "" : $"({device.Location}"))
</p>
}
</td>
Expand Down Expand Up @@ -71,13 +71,12 @@
{
var info = uaParser.Parse(device.UserAgent);
<p>
@info.Device.Family on @info.OS
@device.IpAddress
@(string.IsNullOrWhiteSpace(device.Location) ? "" : $"({device.Location})")
@info.Device.ToString() on @info.OS
(@device.IpAddress
@(string.IsNullOrWhiteSpace(device.Location) ? "" : $"{device.Location}"))
</p>
}
</td>
<td>@string.Join(", ", session.Devices.Select(device => device.IpAddress))</td>
<td>@session.AuthenticatedAt</td>
<td>@session.ExpiresAt</td>
</tr>
Expand Down

0 comments on commit 8e1f00e

Please sign in to comment.