|
55 | 55 | </button> |
56 | 56 |
|
57 | 57 | <div> |
58 | | - <a class="brand-logo" style='background: transparent url("{{pathto('_static/img/logo_small.png', 1)}}") no-repeat 0px 0px;' href="/{{appname}}/default/user/login"> </a> |
| 58 | + {% if minimal_outside_links != 'True' %} |
| 59 | + <a class="brand-logo" style='background: transparent url("{{pathto('_static/img/logo_small.png', 1)}}") no-repeat 0px 0px;' href="/{{appname}}/default/user/login"> </a> |
| 60 | + {% else %} |
| 61 | + <a class="brand-logo" style='background: transparent url("{{pathto('_static/img/logo_small.png', 1)}}") no-repeat 0px 0px;'> <span aria-label="logo" class="visuallyhidden">Runestone Logo</span> </a> |
| 62 | + {% endif %} |
59 | 63 | <a class="navbar-brand" href="{{ pathto(master_doc) }}" aria-label="index-page"> |
60 | 64 | {% if dynamic_pages == 'True' %} |
61 | 65 | {% raw %} |
|
76 | 80 | <li class="divider-vertical"></li> |
77 | 81 |
|
78 | 82 | <!-- social media dropdown --> |
| 83 | + {% if minimal_outside_links != 'True' %} |
79 | 84 | <li class="dropdown"> |
80 | 85 | <a class="dropdown-toggle" href="#" data-toggle="dropdown"> |
81 | 86 | <i class="glyphicon glyphicon-globe" style="opacity: 0.9"><span aria-label="Social" class="visuallyhidden">Social</span></i> |
|
107 | 112 | </li> |
108 | 113 | </ul> |
109 | 114 | </li> |
| 115 | + {%- endif -%} |
110 | 116 | <!-- end social media dropdown --> |
111 | 117 |
|
112 | 118 | <li class="divider-vertical"></li> |
|
156 | 162 | <li><a href='/{{appname}}/assignments/chooseAssignment.html'>Assignments</a></li> |
157 | 163 | <li><a href='/{{appname}}/assignments/practice'>Practice</a></li> |
158 | 164 | <li class="divider"></li> |
| 165 | + {% if minimal_outside_links != 'True' %} |
159 | 166 | <li><a href='/{{appname}}/default/courses'>Change Course</a></li> |
160 | 167 | <li class="divider"></li> |
| 168 | +<<<<<<< HEAD |
161 | 169 | <li id="ip_dropdown_link"><a href='/{{appname}}/admin/index'>Instructor's Page</a></li> |
162 | 170 | <li><a href='/{{appname}}/assignments/index'>Progress Page</a></li> |
163 | 171 | <li class="divider"></li> |
164 | 172 | <li><a href="/{{appname}}/default/user/profile" id="profilelink">Edit Profile</a></li> |
165 | 173 | <li><a href="/{{appname}}/default/user/change_password" id="passwordlink">Change Password</a></li> |
166 | 174 | <li><a href="/{{appname}}/default/user/register" id="registerlink">Register</a></li> |
| 175 | +======= |
| 176 | + <li id="ip_dropdown_link"><a href='{{course_url}}/{{appname}}/admin/index'>Instructor's Page</a></li> |
| 177 | + {%- endif -%} |
| 178 | + <li><a href='{{ course_url }}/{{ appname }}/assignments/index'>Progress Page</a></li> |
| 179 | + <li class="divider"></li> |
| 180 | + {% if minimal_outside_links != 'True' %} |
| 181 | + <li><a href="{{course_url}}/{{appname}}/default/user/profile" id="profilelink">Edit Profile</a></li> |
| 182 | + <li><a href="{{course_url}}/{{appname}}/default/user/change_password" id="passwordlink">Change Password</a></li> |
| 183 | + <li><a href="{{course_url}}/{{appname}}/default/user/register" id="registerlink">Register</a></li> |
| 184 | + {%- endif -%} |
| 185 | +>>>>>>> d79c3e3... remove lots of links if pavements specifies minimal_outside_links |
167 | 186 | <li class='loginout'><a href='#'>Login</a></li> <!-- correct link populated by addNavbarLoginLink() --> |
168 | 187 | </ul> |
169 | 188 | </li> |
|
179 | 198 |
|
180 | 199 | <li class="divider-vertical"></li> |
181 | 200 |
|
| 201 | + {% if minimal_outside_links != 'True' %} |
182 | 202 | <!-- help menu dropdown --> |
183 | 203 | <li class="dropdown"> |
184 | 204 | <a class="dropdown-toggle" href="#" data-toggle="dropdown"> |
|
195 | 215 | <!-- end help menu dropdown --> |
196 | 216 |
|
197 | 217 | <li class="divider-vertical"></li> |
198 | | - |
| 218 | + {% endif %} |
199 | 219 | </ul> |
200 | 220 |
|
201 | 221 | <ul class="nav navbar-nav"> |
|
275 | 295 |
|
276 | 296 | </script> |
277 | 297 |
|
| 298 | +{% if minimal_outside_links != 'True' %} |
278 | 299 | <div id="fb-root"></div> |
279 | 300 | <script> |
280 | 301 | (function(d, s, id) { |
|
285 | 306 | fjs.parentNode.insertBefore(js, fjs); |
286 | 307 | }(document, 'script', 'facebook-jssdk')); |
287 | 308 | </script> |
| 309 | +{% endif %} |
288 | 310 |
|
289 | 311 | {% endblock %} |
290 | 312 |
|
|
318 | 340 | <div class="container"> |
319 | 341 | <p class="pull-right"> |
320 | 342 | {% if use_services == 'true' %} |
| 343 | + {% if minimal_outside_links != 'True' %} |
321 | 344 | <span id='numuserspan'></span><span class='loggedinuser'></span> |
322 | 345 | {% endif %} |
| 346 | + {% endif %} |
323 | 347 | | <a href="#">Back to top</a> |
324 | 348 | {% if theme_source_link_position == "footer" %} |
325 | 349 | <br /> |
|
350 | 374 | {{ if request.application == 'runestone':}} |
351 | 375 | <script type="text/javascript"> |
352 | 376 | var _gaq = _gaq || []; |
353 | | - _gaq.push(['_setAccount', 'UA-32029811-1']); |
| 377 | + _gaq.push(['_setAccount', '{{ google_ga_account }}']); |
354 | 378 | _gaq.push(['_trackPageview']); |
355 | 379 |
|
356 | 380 | (function() { |
|
359 | 383 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
360 | 384 | })(); |
361 | 385 | </script> |
| 386 | +{% if minimal_outside_links != 'True' %} |
362 | 387 | <script async src="https://hypothes.is/embed.js"></script> |
| 388 | +{% endif %} |
| 389 | + |
363 | 390 | {{ pass }} |
364 | 391 | {% endraw %} |
365 | 392 | {% endif %} |
|
0 commit comments