@@ -107,50 +110,33 @@ templ content(email string, username string, title string) {
+ for _, ses := range ListSession {
-
- 192.168.1.100 |
- Chrome 89
+ | {ses.IP}
|
- Desktop
+ | {ses.Browser + ses.Version}
|
- 1 week
- ago
+ | {ses.OS + ses.OSVersion}
+ |
+ {ses.AccessAt}
|
-
+
|
+ }
-
@@ -218,18 +204,32 @@ templ content(email string, username string, title string) {
@@ -262,6 +262,6 @@ templ content(email string, username string, title string) {
}
}
-templ Main(title string, email string, username string) {
- @content(email, username, title)
+templ Main(title string, email string, username string, ListSession []*session.SessionInfo) {
+ @content(email, username, title, ListSession)
}
\ No newline at end of file