Skip to content

Commit

Permalink
Merge pull request #2640 from pulibrary/remove_ribbon_message
Browse files Browse the repository at this point in the history
Remove system upgrade message.
  • Loading branch information
christinach authored Aug 9, 2021
2 parents 1ffbe9f + ab3f314 commit bb1f26c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/shared/_announcement.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%# to remove messages altogether, set this to empty string %>
<% message = 'System upgrade: July 16 through August 8. <a href="https://library.princeton.edu/news/general/2021-08-02/pul-launch-new-service-platform-summer-2021-hathitrust-etas-update">Learn more</a>.'.html_safe %>
<% message = '' %>
<% if Orangelight.read_only_mode %>
<div class="col-12 alert alert-warning announcement">
<div class="container">
Expand Down
2 changes: 1 addition & 1 deletion spec/views/shared/_announcement.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
RSpec.describe 'shared/_announcement' do
it 'renders an announcement' do
render
expect(rendered).to match(/System upgrade/)
expect(rendered).to match(//)
end

context 'in read-only mode' do
Expand Down

0 comments on commit bb1f26c

Please sign in to comment.