diff --git a/app/assets/docs/HECVAT3 _OpenDSA_20220830.xlsx b/app/assets/docs/HECVAT3 _OpenDSA_20220830.xlsx new file mode 100644 index 00000000..1b0ecde7 Binary files /dev/null and b/app/assets/docs/HECVAT3 _OpenDSA_20220830.xlsx differ diff --git a/app/controllers/documentation_controller.rb b/app/controllers/documentation_controller.rb new file mode 100644 index 00000000..7432c170 --- /dev/null +++ b/app/controllers/documentation_controller.rb @@ -0,0 +1,6 @@ +class DocumentationController < ApplicationController + def hecvat_download + file_path = Rails.root.join('app', 'assets', 'docs', 'HECVAT3 _OpenDSA_20220830.xlsx') + send_file file_path, type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', disposition: 'attachment', filename: 'HECVAT3.xlsx' + end +end \ No newline at end of file diff --git a/app/views/layouts/_navbar.html.haml b/app/views/layouts/_navbar.html.haml index 21457a99..6c77dfdb 100644 --- a/app/views/layouts/_navbar.html.haml +++ b/app/views/layouts/_navbar.html.haml @@ -32,6 +32,20 @@ %li %a{href: home_guide_path} Instructor Guides + %li.dropdown + %a.dropdown-toggle{ href: organizations_path, + data: { toggle: 'dropdown' }, value: 'System Documentation' } + System Documentation + %ul.dropdown-menu + %li + .yamm-content + %ul.list-unstyled + %li + %a{href:"https://opendsa.readthedocs.io/"} + OpenDSA Official documentation + %li + -# %strong HECVAT3 + = link_to 'HECVAT3', hecvat_download_path %ul.nav.navbar-nav.navbar-right.nav-top - if user_signed_in? diff --git a/config/routes.rb b/config/routes.rb index 04bb953c..39800072 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -114,6 +114,7 @@ post '/textbooks' => 'textbooks#create', as: :create_textbooks post '/textbooks/compile/:course_offering_id' => 'textbooks#compile', as: :compile_textbooks + get '/documentation/hecvat' => 'documentation#hecvat_download', as: :hecvat_download # All of the routes anchored at /gym scope :gym do