|
9 | 9 | <div class="col"> |
10 | 10 | <h1 class="mt-4 mb-3">{{ webinar.title }}</h1> |
11 | 11 | <p>{{ webinar.description|linebreaks }}</p> |
12 | | - <div class="embed-container mb-3"> |
13 | | - <iframe src="https://player.vimeo.com/video/{{ webinar.vimeo_id }}" width="640" height="360" |
14 | | - frameborder="0" |
15 | | - webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> |
16 | | - </div> |
17 | | - <blockquote class="blockquote mt-2 mb-3" > |
18 | | - <p class="mb-0">{{ webinar.speaker }}</p> |
19 | | - <footer class="blockquote-footer">{{ webinar.speaker_title }} |
20 | | - </footer> |
21 | | - </blockquote> |
| 12 | + {% if webinar.vimeo_id %} |
| 13 | + <div class="embed-container mb-3"> |
| 14 | + <iframe src="https://player.vimeo.com/video/{{ webinar.vimeo_id }}" width="640" height="360" |
| 15 | + frameborder="0" |
| 16 | + webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> |
| 17 | + </div> |
22 | 18 |
|
23 | | - <div id='discourse-comments'></div> |
24 | | - <script type="text/javascript"> |
25 | | - DiscourseEmbed = { |
26 | | - discourseUrl: '{{ DISCOURSE_BASE_URL }}', |
27 | | - topicId: {{ webinar.discourse_topic_id }} |
28 | | - }; |
| 19 | + <blockquote class="blockquote mt-2 mb-3"> |
| 20 | + <p class="mb-0">{{ webinar.speaker }}</p> |
| 21 | + <footer class="blockquote-footer">{{ webinar.speaker_title }} |
| 22 | + </footer> |
| 23 | + </blockquote> |
29 | 24 |
|
30 | | - (function () { |
31 | | - var d = document.createElement('script'); |
32 | | - d.type = 'text/javascript'; |
33 | | - d.async = true; |
34 | | - d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js'; |
35 | | - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d); |
36 | | - })(); |
37 | | - </script> |
| 25 | + <div id='discourse-comments'></div> |
| 26 | + <script type="text/javascript"> |
| 27 | + DiscourseEmbed = { |
| 28 | + discourseUrl: '{{ DISCOURSE_BASE_URL }}', |
| 29 | + topicId: {{ webinar.discourse_topic_id }} |
| 30 | + }; |
| 31 | + |
| 32 | + (function () { |
| 33 | + var d = document.createElement('script'); |
| 34 | + d.type = 'text/javascript'; |
| 35 | + d.async = true; |
| 36 | + d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js'; |
| 37 | + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d); |
| 38 | + })(); |
| 39 | + </script> |
| 40 | + {% else %} |
| 41 | + <p class="mt-5 mb-5 h3">Ainda não temos máquina do tempo, esse webinário ainda não foi gravado 😉</p> |
| 42 | + {% endif %} |
38 | 43 |
|
39 | 44 | </div> |
40 | 45 | </div> |
|
0 commit comments