24 lines
765 B
Plaintext
24 lines
765 B
Plaintext
package users
|
|
|
|
import (
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/templ-bulma"
|
|
bh "git.jamestombleson.com/jtom38/newsbot-portal/templ-bulma/html"
|
|
bl "git.jamestombleson.com/jtom38/newsbot-portal/templ-bulma/layout"
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout"
|
|
)
|
|
|
|
templ Profile() {
|
|
@layout.WithTemplate(models.HeaderMetaTags{
|
|
Title: "Profile",
|
|
Type: "Page",
|
|
}) {
|
|
@bl.Hero("Profile", "Here you can update your profile 😀")
|
|
@bulma.H2("Sessions", false)
|
|
@bulma.Button() {
|
|
@bh.ALink("/users/forcelogout", "Terminate all active sessions")
|
|
}
|
|
@bulma.Subitle("This will force you to login again as the application will give you a new session value.")
|
|
}
|
|
}
|