Skip to content

Commit 6433669

Browse files
committed
fixes
1 parent 32600ea commit 6433669

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

models/event.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,3 @@ type = string
4444
label = Description
4545
description = Markdown
4646
type = markdown
47-
48-
[fields.embeddable]
49-
label = Video is Embeddable
50-
type = boolean
51-
default = true

models/resource.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,8 @@ type = string
5050
[fields.event_url]
5151
label = Event URL
5252
type = string
53+
54+
[fields.embeddable]
55+
label = Video embeddable
56+
type = boolean
57+
default = true

templates/macros/video.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ <h2><i class="fa fa-video-camera" aria-hidden="true"></i> {{ video.title }}</h2>
44
{{ "by"|trans }}{% if "space_after_by"|trans != 'false' %} {% endif %}{{ video.author }};
55
{{ "published"|trans }} {{ video.pub_date.strftime('%-d %B %Y') }}
66
</p>
7-
<iframe class="video" src="{{ video.url }}" frameborder="0" allowfullscreen></iframe>
8-
<p>{{ video.description }}</p>
7+
{{ render_video(video) }}
98
{% if video.event_url %}
109
<p><a href="{{ video.event_url }}">{{ "as_seen_at"|trans }} {{ video.event_name }}</a></p>
1110
{% else %}

0 commit comments

Comments
 (0)