Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Beta Banner from PDC Discovery #749

Merged
merged 10 commits into from
Feb 4, 2025
2 changes: 1 addition & 1 deletion app/helpers/banner_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module BannerHelper
# rubocop:disable Rails/ContentTag
def banner_content
@yaml_data = YAML.load_file('config/banner.yml')
return false if @yaml_data[Rails.env].nil?
return false if @yaml_data.nil? || @yaml_data[Rails.env].nil?
@banner_title = "<h1>#{@yaml_data[Rails.env]['title']}</h1>"
@banner_body = "<p>#{@yaml_data[Rails.env]['body']}</p>"
end
Expand Down
15 changes: 3 additions & 12 deletions config/banner.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
---
development:
title: Welcome to the development site
body: Have a look around our new website for the discovery and sharing of research data and <a href="mailto:[email protected]"> let us know what you think</a>. See <a href="https://datacommons.princeton.edu/describe/" target="_blank">How to Submit</a> for instructions on how to publish your research data and code.
test:
title: Welcome to the <i>test</i> site
body: This is a <b>test</b> <a href="mailto:[email protected]">message.</a>
staging:
title: Welcome to Princeton Data Commons Discovery! (Staging)
body: Have a look around our new website for the discovery and sharing of research data and <a href="mailto:[email protected]"> let us know what you think</a>. See our <a href="https://researchdata.princeton.edu/research-lifecycle-guide/getting-started-princeton-data-commons-describe-contributor" target="_blank"> Getting Started as a Princeton Data Commons Contributor</a> guide for instructions on how to publish your research data and code.
production:
title: Welcome to Princeton Data Commons Discovery!
body: Have a look around our new website for the discovery and sharing of research data and <a href="mailto:[email protected]"> let us know what you think</a>. See <a href="https://datacommons.princeton.edu/describe/" target="_blank">How to Submit</a> for instructions on how to publish your research data and code.
# development:
# title: Welcome to the development site
# body: Have a look around our new website for the discovery and sharing of research data and <a href="mailto:[email protected]"> let us know what you think</a>. See <a href="https://datacommons.princeton.edu/describe/" target="_blank">How to Submit</a> for instructions on how to publish your research data and code.