Skip to content

Commit 9719c35

Browse files
Merge pull request #185 from OpenDSA/docs
OpenDSA Official Docs and HECVAT file added
2 parents f996c33 + 6685347 commit 9719c35

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed
1.31 MB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class DocumentationController < ApplicationController
2+
def hecvat_download
3+
file_path = Rails.root.join('app', 'assets', 'docs', 'HECVAT3 _OpenDSA_20220830.xlsx')
4+
send_file file_path, type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', disposition: 'attachment', filename: 'HECVAT3.xlsx'
5+
end
6+
end

app/views/layouts/_navbar.html.haml

+14
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@
3232
%li
3333
%a{href: home_guide_path}
3434
Instructor Guides
35+
%li.dropdown
36+
%a.dropdown-toggle{ href: organizations_path,
37+
data: { toggle: 'dropdown' }, value: 'System Documentation' }
38+
System Documentation
39+
%ul.dropdown-menu
40+
%li
41+
.yamm-content
42+
%ul.list-unstyled
43+
%li
44+
%a{href:"https://opendsa.readthedocs.io/"}
45+
OpenDSA Official documentation
46+
%li
47+
-# %strong HECVAT3
48+
= link_to 'HECVAT3', hecvat_download_path
3549

3650
%ul.nav.navbar-nav.navbar-right.nav-top
3751
- if user_signed_in?

config/routes.rb

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
post '/textbooks' => 'textbooks#create', as: :create_textbooks
115115
post '/textbooks/compile/:course_offering_id' => 'textbooks#compile', as: :compile_textbooks
116116

117+
get '/documentation/hecvat' => 'documentation#hecvat_download', as: :hecvat_download
117118

118119
# All of the routes anchored at /gym
119120
scope :gym do

0 commit comments

Comments
 (0)