2024-05-26 19:30:04 -07:00
|
|
|
package users
|
|
|
|
|
2024-07-11 08:08:58 -07:00
|
|
|
import (
|
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/components/bulma"
|
2024-07-13 10:38:54 -07:00
|
|
|
bh "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/html"
|
|
|
|
bl "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/layout"
|
2024-07-14 09:07:16 -07:00
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
|
2024-07-11 08:08:58 -07:00
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout"
|
|
|
|
)
|
2024-05-26 19:30:04 -07:00
|
|
|
|
|
|
|
templ Profile() {
|
2024-07-14 09:07:16 -07:00
|
|
|
@layout.WithTemplate(models.HeaderMetaTags{
|
|
|
|
Title: "Profile",
|
|
|
|
Type: "Page",
|
|
|
|
}) {
|
2024-07-13 10:38:54 -07:00
|
|
|
@bl.Hero("Profile", "Here you can update your profile 😀")
|
2024-07-11 08:08:58 -07:00
|
|
|
@bulma.H2("Sessions", false)
|
|
|
|
@bulma.Button() {
|
2024-07-13 10:38:54 -07:00
|
|
|
@bh.ALink("/users/forcelogout", "Terminate all active sessions")
|
2024-07-11 08:08:58 -07:00
|
|
|
}
|
|
|
|
@bulma.Subitle("This will force you to login again as the application will give you a new session value.")
|
2024-05-26 19:30:04 -07:00
|
|
|
}
|
|
|
|
}
|