Skip to content

Commit

Permalink
Merge pull request #70 from rogershi-dev/feature/registration-auth
Browse files Browse the repository at this point in the history
Updated index.pug and layout.pug
  • Loading branch information
rogershi-dev authored Jul 12, 2024
2 parents 329eb5c + 2b6cfc4 commit 231f03a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions server/views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ block content
p Welcome to #{title}

if error == 'logoutError'
.alert.alert-danger(role='alert') #{errorMessage}
.alert.alert-danger(role='alert') There was an error logging you out. Please try again.
if userInfo
p Welcome our GitHub guest: #{userInfo[0].github_username}
//- Logout Button
Expand All @@ -22,4 +22,4 @@ block content
p Are you sure you want to log out?
.modal-footer
button.btn.btn-secondary(type='button', data-bs-dismiss='modal') Cancel
a.btn.btn-danger(href='/logout') Confirm Log Out
a.btn.btn-danger(href='/users/logout') Confirm Log Out
5 changes: 2 additions & 3 deletions server/views/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ html
link(rel='stylesheet', href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css')
link(rel='stylesheet' href='/stylesheets/style.css')
body

block content

script(src='https://code.jquery.com/jquery-3.5.1.slim.min.js')
script(src='https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js')
script(src='https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js')
script(src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js' integrity='sha384-r2T0rEsyKkqKKT85Zio6V0PHdyFQOM2C3KpHo5z+E9RmHt8GUeMfXJ42G5KkW5J9' crossorigin='anonymous')

0 comments on commit 231f03a

Please sign in to comment.