|
1 | 1 | {% extends "basic/layout.html" %} |
2 | 2 |
|
3 | | -{% set script_files = script_files + [ |
| 3 | +{% set script_files = ['_static/runestonebase.js'] + script_files + [ |
4 | 4 | '_static'+'/jquery-ui-1.10.3.custom.min.js', |
5 | 5 | '_static'+'/jquery-fix.js', |
6 | 6 | '_static'+'/bootstrap-3.0.0/js/bootstrap.min.js', |
|
83 | 83 | <div> |
84 | 84 | <b>Help support us:</b> |
85 | 85 | </div> |
86 | | - <div class="gittip"> |
87 | | - <iframe style="border:0;" |
88 | | - src="https://www.gittip.com/bnmnetp/widget.html" |
89 | | - width="48pt" height="22pt" class="gittip-button"> |
90 | | - </iframe> |
91 | | - </div> |
92 | 86 | <div> |
93 | 87 | <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> |
94 | 88 | <input type="hidden" name="cmd" value="_s-xclick"> |
|
112 | 106 | <i class="glyphicon glyphicon-search" style='opacity:0.9;'></i> |
113 | 107 | </a> |
114 | 108 | <ul class='dropdown-menu'> |
115 | | - {% if 'overview' in course_id: %} |
| 109 | + {% if 'overview' in course_id %} |
116 | 110 | <li><a href='/{{appname}}/static/{{course_id}}/overview.html'>Table of Contents</a></li> |
117 | 111 | {% else: %} |
118 | 112 | <li><a href='{{ pathto(master_doc) }}'>Table of Contents</a></li> |
119 | 113 | {% endif %} |
120 | 114 | <li><a href='/{{appname}}/static/{{course_id}}/genindex.html'>Book Index</a></li> |
121 | 115 | <li class="divider"></li> |
122 | | - <li id="scratch_ac_link"><a href="javascript:toggleScratchActivecode()">Scratch ActiveCode</a></li> |
| 116 | + <li id="scratch_ac_link"><a href="javascript:ACFactory.toggleScratchActivecode()">Scratch ActiveCode</a></li> |
123 | 117 | <li class="divider"></li> |
124 | 118 | <li style="width: 240px;"> |
125 | 119 | <form class="navbar-search" style="margin:10px;" action="{{ pathto('search') }}" method="get"> |
|
141 | 135 |
|
142 | 136 | <li class="divider-vertical"></li> |
143 | 137 |
|
| 138 | + {% if use_services == 'true' %} |
144 | 139 | <!-- user account dropdown --> |
145 | 140 | <li class="dropdown"> |
146 | 141 | <a class="dropdown-toggle" href="#" data-toggle="dropdown"> |
|
149 | 144 | <ul class="dropdown-menu user-menu"> |
150 | 145 | <li><span class='loggedinuser'></span></li> |
151 | 146 | <li class="divider"></li> |
| 147 | + <li><a href='/{{appname}}/default/courses'>Change Course</a></li> |
| 148 | + <li class="divider"></li> |
152 | 149 | <li><a href='{{course_url}}/{{appname}}/mygroup/initiateGroup' id="joinGroupLink">Join a Study Group</a></li> |
153 | 150 | <li><a href='{{course_url}}/{{appname}}/mygroup/schedule' id="groupScheduleLink">Group Schedule</a></li> |
154 | 151 | <li><a href='{{course_url}}/{{appname}}/mygroup/newschedule' id="newChapterLink">Schedule New Chapter</a></li> |
|
164 | 161 | </ul> |
165 | 162 | </li> |
166 | 163 | <!-- end user account dropdown --> |
167 | | - |
| 164 | + {% endif %} |
168 | 165 | <li class="divider-vertical"></li> |
169 | 166 |
|
170 | 167 | <!-- help menu dropdown --> |
|
177 | 174 | <li><a href='/{{appname}}/static/overview/instructor.html'>Help for Instructors</a></li> |
178 | 175 | <li class="divider"></li> |
179 | 176 | <li><a href='http://runestoneinteractive.org'>About Runestone</a></li> |
180 | | - <li><a href='https://github.com/bnmnetp/runestone/issues/new'>Report A Problem</a></li> |
| 177 | + <li><a href='/{{ appname }}/default/reportabug?course={{ course_id }}&page={{ pathto(pagename,1) }}'>Report A Problem</a></li> |
181 | 178 | </ul> |
182 | 179 | </li> |
183 | 180 | <!-- end help menu dropdown --> |
|
209 | 206 | <meta charset='utf-8'> |
210 | 207 | <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> |
211 | 208 | <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' /> |
| 209 | +<link rel="shortcut icon" href="/{{appname}}/static/favicon.ico" type="image/ico" /> |
| 210 | + |
212 | 211 | <script type="text/javascript"> |
213 | 212 | eBookConfig = {}; |
214 | 213 | eBookConfig.host = '{{course_url}}' ? '{{course_url}}' : 'http://127.0.0.1:8000'; |
215 | 214 | eBookConfig.app = eBookConfig.host+'/{{appname}}'; |
216 | 215 | eBookConfig.ajaxURL = eBookConfig.app+'/ajax/'; |
217 | 216 | eBookConfig.course = '{{course_id}}'; |
218 | 217 | eBookConfig.logLevel = {{loglevel}}; |
219 | | - eBookConfig.loginRequired = {{login_required}} |
| 218 | + eBookConfig.loginRequired = {{login_required}}; |
220 | 219 | eBookConfig.build_info = "{{build_info}}"; |
221 | 220 | eBookConfig.isLoggedIn = false; |
| 221 | + eBookConfig.useRunestoneServices = {{ use_services }}; |
| 222 | + eBookConfig.python3 = {{ python3 }}; |
| 223 | + eBookConfig.basecourse = '{{ basecourse }}'; |
| 224 | + eBookConfig.runestone_version = '{{ runestone_version }}'; |
222 | 225 | </script> |
223 | 226 |
|
224 | 227 | <div id="fb-root"></div> |
|
260 | 263 | <footer class="footer"> |
261 | 264 | <div class="container"> |
262 | 265 | <p class="pull-right"> |
263 | | - <span id='numuserspan'></span> readers online now | <span class='loggedinuser'></span> | <a href="#">Back to top</a> |
| 266 | + {% if use_services == 'true' %} |
| 267 | + <span id='numuserspan'></span> readers online now | <span class='loggedinuser'></span> |
| 268 | + {% endif %} |
| 269 | + | <a href="#">Back to top</a> |
264 | 270 | {% if theme_source_link_position == "footer" %} |
265 | 271 | <br /> |
266 | 272 | {% include "sourcelink.html" %} |
|
278 | 284 | {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}<br/> |
279 | 285 | {%- endif %} |
280 | 286 | {%- if show_sphinx %} |
281 | | - {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %} |
| 287 | + {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://runestoneinteractive.org/">Runestone</a> {{ runestone_version }}.{% endtrans %} |
282 | 288 | {%- endif %} |
283 | 289 | </p> |
284 | 290 | </div> |
285 | 291 | </footer> |
286 | 292 |
|
| 293 | + |
287 | 294 | {% if appname == "runestone" %} |
288 | 295 | <script type="text/javascript"> |
289 | 296 | var _gaq = _gaq || []; |
|
0 commit comments