Skip to content

Commit

Permalink
Add new Need Help page (#1862)
Browse files Browse the repository at this point in the history
* Add new Need Help page

* Add text for new Help page

* Add email links for Help page

* Adds test for Help page
  • Loading branch information
leefaisonr authored Jul 22, 2024
1 parent 044f24e commit 49aeb09
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/welcome_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ class WelcomeController < ApplicationController
def index; end
def about; end
def license; end
def help; end
end
1 change: 1 addition & 0 deletions app/views/shared/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<nav id="menu" class="col-sm" role="menu">
<%= link_to "About","#{root_url}about", :class => "btn btn-primary about", :role => "menuitem" %>
<%= link_to "How to Submit", "#{root_url}how-to-submit", :class => "btn btn-primary how-to-submit", :role => "menuitem" %>
<%= link_to "Help", "#{root_url}help", :class =>"btn btn-secondary help", :role => "menuitem" %>
</nav>
<nav id="user-actions" class="col-sm">
<% if current_user %>
Expand Down
17 changes: 17 additions & 0 deletions app/views/welcome/help.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div>
<h2><strong>Need help?</strong></h2>
<p>For general help with data submissions, please contact <%= link_to "[email protected]", "mailto:[email protected]" %></p>

<h2><strong>Who do I contact for assistance?</strong></h2>
<p>The research data repository has submission portals which are managed separately. You may contact the appropriate management point to request assistance.</p>

<h4>Princeton Research Data Service (PRDS)</h4>
<p>Provides submission access and curatorial services for the main collections of research data that are discoverable in this repository. Contact: <%= link_to "[email protected]", "mailto:[email protected]" %>.</p>

<h4>Princeton Plasma Physics Laboratory (PPPL)</h4>
<p>Provides submission access and assistance for the Princeton Plasma Physics Laboratory collections of research data that are discoverable in this repository. Contact: <%= link_to "[email protected]", "mailto:[email protected]" %>.</p>

<h4>Globus Support</h4>
<p>If you are experiencing issues accessing or uploading data in the Princeton Data Commons Globus endpoints, please open a ticket with Library IT by emailing <%= link_to "[email protected]", "mailto:[email protected]" %>. Library IT can provide support for Princeton Data Commons Globus issues during business hours, Monday through Friday, 9:00AM - 5:00PM Eastern Time, excluding University holidays. We will respond to support requests received outside of business hours on the next business day.</p>
<p>The Globus endpoints will occasionally need to be temporarily unavailable for scheduled or emergency maintenance. We will announce scheduled maintenance windows on the Princeton Data Commons homepage with as much advance notice as possible. In the case of emergency outages, we will also provide information and updates on the Princeton Data Commons homepage.</p>
</div>
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
get "about", to: "welcome#about", as: :welcome_about
get "license", to: "welcome#license", as: :welcome_license
get "how-to-submit", to: "welcome#how_to_submit", as: :welcome_how_to_submit
get "help", to: "welcome#help", as: :help

# The wizard new submission controller (work wizard step 0)
get "works/:id/new-submission", to: "works_wizard_new_submission#new_submission", as: :work_create_new_submission
Expand Down
10 changes: 10 additions & 0 deletions spec/views/welcome/help.html.erb_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true
require "rails_helper"

describe "/help", type: :system do
it "renders the Help page" do
visit "/help"
expect(page).to have_text("Need help?")
expect(page).to have_text("Who do I contact for assistance?")
end
end

0 comments on commit 49aeb09

Please sign in to comment.