Skip to content

Commit

Permalink
new login flashmessage and removes white bar under the message (#1059)
Browse files Browse the repository at this point in the history
Co-authored-by: JP Engstrom <[email protected]>
  • Loading branch information
JP Engstrom and JP Engstrom authored Sep 18, 2024
1 parent 5d7e4f7 commit 07b5c90
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/customOverrides/landing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ DEFAULT MOBILE STYLING
}
}

.landing_flash_messages {
margin-bottom: -15px;
}

#hero-search {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion app/views/application/landing.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<header>
<%= render partial: 'shared/header_navbar' %>

<%= render partial: 'shared/flash_msg', layout: 'shared/flash_messages' %>
<%= render partial: 'shared/landing_flash_msg', layout: 'shared/flash_messages', class: 'landing-flash' %>

<div id='hero'>
<div class="intro">
Expand Down
5 changes: 5 additions & 0 deletions app/views/shared/_landing_flash_msg.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="landing_flash_messages">
<% [:success, :notice, :error, :alert].each do |type| %>
<%= render(Blacklight::System::FlashMessageComponent.with_collection(Array.wrap(flash[type]), type: type)) if flash[type] %>
<% end %>
</div>
4 changes: 2 additions & 2 deletions config/locales/devise.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ en:
password_change:
subject: "Password Changed"
omniauth_callbacks:
failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
success: "Successfully authenticated from %{kind} account."
failure: "Could not authenticate you because \"%{reason}\"."
success: "Successfully logged in."
passwords:
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
Expand Down

0 comments on commit 07b5c90

Please sign in to comment.