2024-05-12 09:22:14 -07:00
|
|
|
package users
|
|
|
|
|
2024-07-07 08:00:43 -07:00
|
|
|
import "git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
|
|
|
|
|
2024-05-12 09:22:14 -07:00
|
|
|
// This is returned after the user logs into the application.
|
|
|
|
// It just returns a partial view because it will overlap with the existing template.
|
2024-07-07 08:00:43 -07:00
|
|
|
templ AfterLogin(vm models.AfterLoginViewModel) {
|
|
|
|
if vm.Success {
|
2024-05-12 09:22:14 -07:00
|
|
|
<div class="notification is-success">
|
2024-07-07 08:00:43 -07:00
|
|
|
{ vm.Message }
|
2024-05-12 09:22:14 -07:00
|
|
|
</div>
|
|
|
|
} else {
|
2024-07-07 08:00:43 -07:00
|
|
|
<div class="notification is-error">
|
|
|
|
{ vm.Message }
|
2024-05-12 09:22:14 -07:00
|
|
|
</div>
|
2024-07-07 08:00:43 -07:00
|
|
|
}
|
2024-05-12 09:22:14 -07:00
|
|
|
}
|