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

16 lines
370 B
Plaintext
Raw Normal View History

package users
// 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 {
<div class="notification is-success">
{ message }
</div>
} else {
<div class="notification is-error">
{ message }
</div>
}
}