|
1 | 1 | {% extends "basic/layout.html" %} |
2 | 2 |
|
| 3 | +{% if dynamic_pages == 'True' %} |
| 4 | + {% set appname = '{{ =request.application }}' %} |
| 5 | +{% endif %} |
| 6 | + |
3 | 7 | {% set script_files = ['_static/runestonebase.js'] + script_files + [ |
4 | 8 | '_static'+'/jquery-ui-1.10.3.custom.min.js', |
5 | 9 | '_static'+'/jquery-fix.js', |
|
114 | 118 | </a> |
115 | 119 | <ul class='dropdown-menu'> |
116 | 120 | {% if 'overview' in course_id %} |
117 | | - <li><a href='/{{appname}}/static/{{course_id}}/overview.html' aria-label="index-page">Table of Contents</a></li> |
| 121 | + <li><a href='{{ pathto(master_doc) }}/overview.html' aria-label="index-page">Table of Contents</a></li> |
118 | 122 | {% else: %} |
119 | 123 | <li><a href='{{ pathto(master_doc) }}' aria-label="index-page">Table of Contents</a></li> |
120 | 124 | {% endif %} |
121 | | - <li><a href='/{{appname}}/static/{{course_id}}/genindex.html'>Book Index</a></li> |
| 125 | + <li><a href='{{ pathto(master_doc) }}/genindex.html'>Book Index</a></li> |
122 | 126 | <li class="divider"></li> |
123 | 127 | <li style="width: 240px;"> |
124 | 128 | <form class="navbar-search" style="margin:10px;" action="{{ pathto('search') }}" method="get"> |
|
149 | 153 | <ul class="dropdown-menu user-menu"> |
150 | 154 | <li><span class='loggedinuser'></span></li> |
151 | 155 | <li class="divider"></li> |
152 | | - <li><a href='{{course_url}}/{{appname}}/assignments/chooseAssignment.html'>Assignments</a></li> |
153 | | - <li><a href='{{course_url}}/{{appname}}/assignments/practice'>Practice</a></li> |
| 156 | + <li><a href='/{{appname}}/assignments/chooseAssignment.html'>Assignments</a></li> |
| 157 | + <li><a href='/{{appname}}/assignments/practice'>Practice</a></li> |
154 | 158 | <li class="divider"></li> |
155 | 159 | <li><a href='/{{appname}}/default/courses'>Change Course</a></li> |
156 | 160 | <li class="divider"></li> |
157 | | - <li id="ip_dropdown_link"><a href='{{course_url}}/{{appname}}/admin/index'>Instructor's Page</a></li> |
158 | | - <li><a href='{{ course_url }}/{{ appname }}/assignments/index'>Progress Page</a></li> |
| 161 | + <li id="ip_dropdown_link"><a href='/{{appname}}/admin/index'>Instructor's Page</a></li> |
| 162 | + <li><a href='/{{appname}}/assignments/index'>Progress Page</a></li> |
159 | 163 | <li class="divider"></li> |
160 | | - <li><a href="{{course_url}}/{{appname}}/default/user/profile" id="profilelink">Edit Profile</a></li> |
161 | | - <li><a href="{{course_url}}/{{appname}}/default/user/change_password" id="passwordlink">Change Password</a></li> |
162 | | - <li><a href="{{course_url}}/{{appname}}/default/user/register" id="registerlink">Register</a></li> |
| 164 | + <li><a href="/{{appname}}/default/user/profile" id="profilelink">Edit Profile</a></li> |
| 165 | + <li><a href="/{{appname}}/default/user/change_password" id="passwordlink">Change Password</a></li> |
| 166 | + <li><a href="/{{appname}}/default/user/register" id="registerlink">Register</a></li> |
163 | 167 | <li class='loginout'><a href='#'>Login</a></li> <!-- correct link populated by addNavbarLoginLink() --> |
164 | 168 | </ul> |
165 | 169 | </li> |
|
182 | 186 | </a> |
183 | 187 | <ul class="dropdown-menu user-menu"> |
184 | 188 | <li><a href='http://runestoneinteractive.org/pages/faq.html'>FAQ</a></li> |
185 | | - <li><a href='/{{appname}}/static/{{course_id}}/navhelp.html'>Navigation Help</a></li> |
186 | | - <li><a href='/{{appname}}/static/instructorguide/index.html'>Help for Instructors</a></li> |
| 189 | + <li><a href='https://runestone.academy/runestone/static/overview/navhelp.html'>Navigation Help</a></li> |
| 190 | + <li><a href='https://runestone.academy/runestone/static/overview/instructor.html'>Help for Instructors</a></li> |
187 | 191 | <li class="divider"></li> |
188 | 192 | <li><a href='http://runestoneinteractive.org'>About Runestone</a></li> |
189 | 193 | <li><a href='/{{ appname }}/default/reportabug?course={{ course_id }}&page={{ pathto(pagename,1) }}'>Report A Problem</a></li> |
|
250 | 254 | {% endraw %} |
251 | 255 | {% else %} |
252 | 256 | eBookConfig.useRunestoneServices = {% if use_services == 'true' -%}true{%- else -%}false{%- endif -%}; |
253 | | - eBookConfig.host = '{{course_url}}' ? '{{course_url}}' : 'http://127.0.0.1:8000'; |
| 257 | + eBookConfig.host = '{{course_url}}' || 'http://127.0.0.1:8000'; |
254 | 258 | eBookConfig.app = eBookConfig.host+'/{{appname}}'; |
255 | 259 | eBookConfig.course = '{{course_id}}'; |
256 | 260 | eBookConfig.basecourse = '{{ basecourse }}'; |
|
0 commit comments