16 lines
370 B
Plaintext
16 lines
370 B
Plaintext
|
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>
|
||
|
}
|
||
|
}
|