|
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}} |
| 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 | 248 | {% endraw %} |
249 | 249 | {% else %} |
250 | 250 | eBookConfig.useRunestoneServices = {% if use_services == 'true' -%}true{%- else -%}false{%- endif -%}; |
|
272 | 272 | <!-- Ad Serving Headers Only serve ads to Anonymous Users --> |
273 | 273 | {% if dynamic_pages == 'True' %} |
274 | 274 | {% raw %} |
275 | | - {{ if response.serve_ad and settings.adsenseid: }} |
276 | | - <script data-ad-client="{{=settings.adsenseid}}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> |
277 | | - {{ pass }} |
| 275 | + {% if settings.serve_ad and settings.adsenseid %} |
| 276 | + <script data-ad-client="{{settings.adsenseid}}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> |
| 277 | + {% endif %} |
278 | 278 | {% endraw %} |
279 | 279 | {% endif %} |
280 | 280 |
|
|
310 | 310 | <!-- Ad Serving for Runestone Campaign --> |
311 | 311 | {% if dynamic_pages == 'True' %} |
312 | 312 | {% raw %} |
313 | | - {{ if settings.num_banners > 0 and settings.show_rs_banner: }} |
| 313 | + {% if settings.num_banners > 0 and settings.show_rs_banner %} |
314 | 314 | <div style="width: 100%;"> |
315 | | - <a href="/runestone/default/donate?banner={{=banner_num}}"> |
| 315 | + <a href="/runestone/default/donate?banner={{banner_num}}"> |
316 | 316 | <img class="runestone-banner" |
317 | | - src="/runestone/static/images/RunestoneBanner{{=banner_num}}.png" |
| 317 | + src="/runestone/static/images/RunestoneBanner{{banner_num}}.png" |
318 | 318 | alt="Please Support Runestone" |
319 | 319 | style="display: block; width: 728px; margin-left: auto; margin-right: auto; margin-top: 10px;"> |
320 | 320 | </a> |
321 | 321 | </div> |
322 | | - {{ pass }} |
| 322 | + {% endif %} |
323 | 323 | {% endraw %} |
324 | 324 | {% endif %} |
325 | 325 |
|
|
370 | 370 |
|
371 | 371 | {% if dynamic_pages == 'True' %} |
372 | 372 | {% raw %} |
373 | | - {{ if request.application == 'runestone':}} |
| 373 | + {% if request.application == 'runestone' %} |
374 | 374 | <script type="text/javascript"> |
375 | 375 | var _gaq = _gaq || []; |
376 | | - _gaq.push(['_setAccount', '{{ =settings.google_ga }}']); |
| 376 | + _gaq.push(['_setAccount', '{{ settings.google_ga }}']); |
377 | 377 | _gaq.push(['_trackPageview']); |
378 | 378 |
|
379 | 379 | (function() { |
|
382 | 382 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
383 | 383 | })(); |
384 | 384 | </script> |
385 | | - {{ pass }} |
| 385 | + {% endif %} |
386 | 386 | {% endraw %} |
387 | 387 |
|
388 | 388 | {% if minimal_outside_links != 'True' %} |
|
0 commit comments