From 85607852c6fd93a15da9fb21644f13f5d9922ea2 Mon Sep 17 00:00:00 2001 From: Michael Gurley Date: Wed, 1 Mar 2017 10:07:23 -0500 Subject: [PATCH] references #65 Add instructions to home page for logging in. --- app/views/home/index.html.haml | 4 ++++ spec/features/home_spec.rb | 1 + 2 files changed, 5 insertions(+) diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml index 63cf121..19046ff 100644 --- a/app/views/home/index.html.haml +++ b/app/views/home/index.html.haml @@ -21,10 +21,14 @@ %li Browse the list of available clinical research repositories below. %li + If affiliated with Northwestern, use your NetID and password to - if user_signed_in? Login. - else = link_to "Login.", new_user_session_path + %br + %li + If not affiliated with Northwestern, create an account by signing up (coming soon!). %li Create a disbursement request. .existing_user diff --git a/spec/features/home_spec.rb b/spec/features/home_spec.rb index 8de0ef0..3838278 100644 --- a/spec/features/home_spec.rb +++ b/spec/features/home_spec.rb @@ -27,6 +27,7 @@ end scenario 'Visting a repository ', js: true, focus: false do + scroll_to_bottom_of_the_page within("#repository_#{@repository_moomin.id}") do click_link('View') end