|
1 | 1 | {% extends "basic/layout.html" %} |
2 | 2 |
|
3 | 3 | {% if dynamic_pages == 'True' %} |
4 | | - {% set appname = '{{ =request.application }}' %} |
| 4 | + {% set appname = '{{ request.application }}' %} |
5 | 5 | {% endif %} |
6 | 6 |
|
7 | 7 |
|
|
41 | 41 | <a class="navbar-brand" href="{{ pathto(master_doc) }}" aria-label="index-page"> |
42 | 42 | {% if dynamic_pages == 'True' %} |
43 | 43 | {% raw %} |
44 | | - {{ =course_name }} |
| 44 | + {{ course_name }} |
45 | 45 | {% endraw %} |
46 | 46 | {% else %} |
47 | 47 | {% if course_title -%}{{ course_title|e }}{%- else -%}{{ course_id|e }}{%- endif -%} |
|
234 | 234 | {% raw %} |
235 | 235 | eBookConfig.useRunestoneServices = true; |
236 | 236 | eBookConfig.host = ''; |
237 | | - eBookConfig.app = eBookConfig.host + '/' + '{{= request.application }}'; |
238 | | - eBookConfig.course = '{{= course_name }}'; |
239 | | - eBookConfig.basecourse = '{{= base_course }}'; |
240 | | - eBookConfig.isLoggedIn = {{= is_logged_in}}; |
241 | | - eBookConfig.email = '{{= user_email }}'; |
242 | | - eBookConfig.isInstructor = {{= is_instructor }}; |
243 | | - eBookConfig.username = '{{= user_id}}'; |
244 | | - eBookConfig.readings = {{= readings}}; |
245 | | - eBookConfig.activities = {{= XML(activity_info) }} |
246 | | - eBookConfig.downloadsEnabled = {{=downloads_enabled}}; |
247 | | - eBookConfig.allow_pairs = {{=allow_pairs}} |
248 | | - eBookConfig.enableCompareMe = {{=enable_compare_me }}; |
| 237 | + eBookConfig.app = eBookConfig.host + '/' + '{{ request.application }}'; |
| 238 | + eBookConfig.course = '{{ course_name }}'; |
| 239 | + eBookConfig.basecourse = '{{ base_course }}'; |
| 240 | + eBookConfig.isLoggedIn = {{ is_logged_in}}; |
| 241 | + eBookConfig.email = '{{ user_email }}'; |
| 242 | + eBookConfig.isInstructor = {{ is_instructor }}; |
| 243 | + eBookConfig.username = '{{ user_id}}'; |
| 244 | + eBookConfig.readings = {{ readings}}; |
| 245 | + eBookConfig.activities = {{ activity_info }} |
| 246 | + eBookConfig.downloadsEnabled = {{downloads_enabled}}; |
| 247 | + eBookConfig.allow_pairs = {{allow_pairs}} |
| 248 | + eBookConfig.enableCompareMe = {{enable_compare_me}}; |
249 | 249 | {% endraw %} |
250 | 250 | {% else %} |
251 | 251 | eBookConfig.useRunestoneServices = {% if use_services == 'true' -%}true{%- else -%}false{%- endif -%}; |
|
274 | 274 | <!-- Ad Serving Headers Only serve ads to Anonymous Users --> |
275 | 275 | {% if dynamic_pages == 'True' %} |
276 | 276 | {% raw %} |
277 | | - {{ if response.serve_ad and settings.adsenseid: }} |
278 | | - <script data-ad-client="{{=settings.adsenseid}}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> |
279 | | - {{ pass }} |
| 277 | + {% if settings.serve_ad and settings.adsenseid %} |
| 278 | + <script data-ad-client="{{settings.adsenseid}}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> |
| 279 | + {% endif %} |
280 | 280 | {% endraw %} |
281 | 281 | {% endif %} |
282 | 282 |
|
|
299 | 299 | <!-- Ad Serving for Runestone Campaign --> |
300 | 300 | {% if dynamic_pages == 'True' %} |
301 | 301 | {% raw %} |
302 | | - {{ if settings.num_banners > 0 and settings.show_rs_banner: }} |
| 302 | + {% if settings.num_banners > 0 and settings.show_rs_banner %} |
303 | 303 | <div style="width: 100%;"> |
304 | | - <a href="/runestone/default/donate?banner={{=banner_num}}"> |
| 304 | + <a href="/runestone/default/donate?banner={{banner_num}}"> |
305 | 305 | <img class="runestone-banner" |
306 | | - src="/runestone/static/images/RunestoneBanner{{=banner_num}}.png" |
| 306 | + src="/runestone/static/images/RunestoneBanner{{banner_num}}.png" |
307 | 307 | alt="Please Support Runestone" |
308 | 308 | style="display: block; width: 728px; margin-left: auto; margin-right: auto; margin-top: 10px;"> |
309 | 309 | </a> |
310 | 310 | </div> |
311 | | - {{ pass }} |
| 311 | + {% endif %} |
312 | 312 | {% endraw %} |
313 | 313 | {% endif %} |
314 | 314 |
|
|
359 | 359 |
|
360 | 360 | {% if dynamic_pages == 'True' %} |
361 | 361 | {% raw %} |
362 | | - {{ if request.application == 'runestone':}} |
| 362 | + {% if request.application == 'runestone' %} |
363 | 363 | <script type="text/javascript"> |
364 | 364 | var _gaq = _gaq || []; |
365 | | - _gaq.push(['_setAccount', '{{ =settings.google_ga }}']); |
| 365 | + _gaq.push(['_setAccount', '{{ settings.google_ga }}']); |
366 | 366 | _gaq.push(['_trackPageview']); |
367 | 367 |
|
368 | 368 | (function() { |
|
371 | 371 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
372 | 372 | })(); |
373 | 373 | </script> |
374 | | - {{ pass }} |
| 374 | + {% endif %} |
375 | 375 | {% endraw %} |
376 | 376 |
|
377 | 377 | {% if minimal_outside_links != 'True' %} |
|
0 commit comments