This repository was archived by the owner on Jun 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
project_template/_templates/plugin_layouts/sphinx_bootstrap Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,9 +58,8 @@ function addReadingList() {
5858 name : "link" ,
5959 class : "btn btn-lg ' + 'buttonConfirmCompletion'" ,
6060 href : nxt_link ,
61- text : `Continue to page ${
62- position + 2
63- } of ${ num_readings } in the reading assignment.`,
61+ text : `Continue to page ${ position + 2
62+ } of ${ num_readings } in the reading assignment.`,
6463 } ) ;
6564 } else {
6665 l = $ ( "<div />" , {
@@ -154,7 +153,7 @@ class PageProgressBar {
154153 if (
155154 val == 100.0 &&
156155 $ ( "#completionButton" ) . text ( ) . toLowerCase ( ) ===
157- "mark as completed"
156+ "mark as completed"
158157 ) {
159158 $ ( "#completionButton" ) . click ( ) ;
160159 }
@@ -190,6 +189,7 @@ async function handlePageSetup() {
190189 mess = `username: ${ eBookConfig . username } ` ;
191190 if ( ! eBookConfig . isInstructor ) {
192191 $ ( "#ip_dropdown_link" ) . remove ( ) ;
192+ $ ( "#inst_peer_link" ) . remove ( ) ;
193193 }
194194 $ ( document ) . trigger ( "runestone:login" ) ;
195195 addReadingList ( ) ;
@@ -221,6 +221,7 @@ function setupNavbarLoggedOut() {
221221 $ ( "#profilelink" ) . hide ( ) ;
222222 $ ( "#passwordlink" ) . hide ( ) ;
223223 $ ( "#ip_dropdown_link" ) . hide ( ) ;
224+ $ ( "#inst_peer_link" ) . hide ( ) ;
224225 $ ( "li.loginout" ) . html (
225226 '<a href="' + eBookConfig . app + '/default/user/login">Login</a>'
226227 ) ;
Original file line number Diff line number Diff line change 150150 < li class ="divider "> </ li >
151151 < li > < a href ='/{{appname}}/assignments/chooseAssignment.html '> Assignments</ a > </ li >
152152 < li > < a href ='/{{appname}}/assignments/practice '> Practice</ a > </ li >
153+ < li id ="inst_peer_link "> < a href ='/{{appname}}/peer/instructor.html '> Peer Instruction (Instructor)</ a > </ li >
154+ < li > < a href ='/{{appname}}/peer/student.html '> Peer Instruction (Student)</ a > </ li >
153155 < li class ="divider "> </ li >
154156 {% if minimal_outside_links != 'True' %}
155157 < li > < a href ='/{{appname}}/default/courses '> Change Course</ a > </ li >
You can’t perform that action at this time.
0 commit comments