Skip to content

Commit cc3d03d

Browse files
authored
Apply suggestions from code review
1 parent 3b59803 commit cc3d03d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

models/event.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@ description = Markdown
4646
type = markdown
4747

4848
[fields.embeddable]
49+
label = Video is Embeddable
4950
type = boolean
50-
default = yes
51+
default = true

templates/macros/video.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2><i class="fa fa-video-camera" aria-hidden="true"></i> {{ video.title }}</h2>
1414
{% endmacro %}
1515

1616
{% macro render_video(video) %}
17-
{% if video.embeddable == 'false' %}
17+
{% if video.embeddable is false %}
1818
<p><a href="{{ video.url }}"><i class="fa fa-link" aria-hidden="true"></i>{{ video.title }}</a></p>
1919
{% else %}
2020
<iframe class="video" src="{{ video.url }}" frameborder="0" allowfullscreen></iframe>

0 commit comments

Comments
 (0)