File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 64
64
- course = Course.find_by(id:offering.course_id)
65
65
- organization = Organization.find_by(id:course.organization_id)
66
66
- term = Term.find_by(id:offering.term_id)
67
- - if ENV[" config_api_link" ] == " staging"
68
- = " https://opendsax.cs.vt.edu/ODSA/" + " /Books/#{ organization.slug } /#{ course.slug } /#{ term.slug } /#{ offering.label } /html/"
67
+ - if ENV[" opendsa_branch" ] == " staging"
68
+ = link_to " Textbook URL" , " https://opendsax.cs.vt.edu/ODSA/" + " /Books/#{ organization.slug } /#{ course.slug } /#{ term.slug } /#{ offering.label } /html/"
69
+ - elsif ENV[" opendsa_branch" ] == " master"
70
+ = link_to " Textbook URL" , " https://opendsa-server.cs.vt.edu/ODSA/" + " /Books/#{ organization.slug } /#{ course.slug } /#{ term.slug } /#{ offering.label } /html/"
69
71
- else
70
- = ENV[" config_api_link" ].gsub(" /api/configure/" ," /Books/#{ organization.slug } /#{ course.slug } /#{ term.slug } /#{ offering.label } /html/index.html" )
72
+ = link_to " Textbook URL " , ENV[" config_api_link" ].gsub(" /api/configure/" ," /Books/#{ organization.slug } /#{ course.slug } /#{ term.slug } /#{ offering.label } /html/index.html" )
71
73
%td
72
74
- inst_book = InstBook.find_by(course_offering_id:offering.id)
73
75
- form_name = 'compile_book_' + inst_book.id.to_s
You can’t perform that action at this time.
0 commit comments