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

18 lines
448 B
Plaintext
Raw Normal View History

package users
2024-07-07 08:00:43 -07:00
import "git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
// 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 {
<div class="notification is-success">
2024-07-07 08:00:43 -07:00
{ vm.Message }
</div>
} else {
2024-07-07 08:00:43 -07:00
<div class="notification is-error">
{ vm.Message }
</div>
2024-07-07 08:00:43 -07:00
}
}