Story #67 Hide UNL Login | User and Technical Documentation - cseseniordesign/reservations GitHub Wiki

End User Documentation

Dev Testing Instructions

  1. Make sure you are on the most recent version of the 'dev-hide-login' branch.
  2. Start your dev environment and log in with development2 so you have access to all the pages of the site.
  3. Navigate around the site ensuring that the UNL login does not appear in the top bar next to the search bar.
  4. Repeat step 3 in a mobile window configuration.

Production Testing Instructions

  1. Go to https://innovationstudio-manager.unl.edu/login/ and log in with an account that has elevated permissions to view the Admin -> Users page.
  2. Follow step 3 and 4 from the dev testing instructions.

--

Technical Documentation

`views/fixed.erb'

  • Removed the following line from the unl class body to remove the login button from being referenced.
    • <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.3/includes/global/idm.html"))).result %>
  • Updated <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/html_patches/patched-nav-toggle-group.html"))).result %> to point to a new patched html file that removes the UNL login button on the mobile nav bar.

`public/html_patches/patched-nav-toggle-group.html'

  • Created a new file that patches out the login button from public/wdn/templates_5.3/includes/global/nav-toggle-group.html.
  • In the future this folder can be used for similar html patches when the file is blocked by the .gitignor.