newsbot-portal/internal/views/users/afterSignUp.templ

14 lines
405 B
Plaintext
Raw Normal View History

package users
import "git.jamestombleson.com/jtom38/newsbot-portal/templ-bulma"
// This is returned after the user creates an account.
// It just returns a partial view because it will overlap with the existing template.
templ AfterSignUp(message string, success bool) {
if success {
@bulma.Notification(message, bulma.ColorSuccess)
} else {
@bulma.Notification(message, bulma.ColorError)
}
}