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

18 lines
448 B
Plaintext

package users
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.
templ AfterLogin(vm models.AfterLoginViewModel) {
if vm.Success {
<div class="notification is-success">
{ vm.Message }
</div>
} else {
<div class="notification is-error">
{ vm.Message }
</div>
}
}