Skip to content

Commit 1276c94

Browse files
committed
Remove deprecated EventPage template code
Now that we've removed the three fields (speech_transcript, video_transcript, flickr_url) we can remove the template code that rendered them.
1 parent 454ae65 commit 1276c94

File tree

2 files changed

+0
-64
lines changed

2 files changed

+0
-64
lines changed

cfgov/v1/jinja2/v1/events/_macros.html

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -243,63 +243,3 @@ <h2>Agenda</h2>
243243
</table>
244244
</div>
245245
{% endmacro %}
246-
247-
{# ==========================================================================
248-
249-
event_media()
250-
251-
==========================================================================
252-
253-
Description:
254-
255-
Create event archive media markup when given:
256-
257-
event: An event from a query result.
258-
259-
========================================================================== #}
260-
261-
{% macro event_media( event ) %}
262-
{% set col_classes = 'content-l_col
263-
content-l_col-1-2
264-
block
265-
block__padded-top
266-
block__flush-top
267-
block__flush-bottom'
268-
%}
269-
270-
{% if event.speech_transcript or event.video_transcript or event.flickr_url %}
271-
<div class="block block__border-top block__padded-top">
272-
{% if event.flickr_url %}
273-
<p>
274-
<h4>Photography</h4>
275-
<a class="a-link
276-
a-link__jump
277-
a-link__external-link"
278-
href="{{ event.flickr_url }}">
279-
See the album for the event
280-
</a>
281-
</p>
282-
{% endif %}
283-
{% if event.speech_transcript %}
284-
<p>
285-
<h4>Speech text</h4>
286-
<a href="{{ event.speech_transcript.url }}"
287-
class="a-link
288-
a-link__jump">
289-
Download speech
290-
</a>
291-
</p>
292-
{% endif %}
293-
{% if event.video_transcript %}
294-
<p>
295-
<h4>Video transcript</h4>
296-
<a href="{{ event.video_transcript.url }}"
297-
class="a-link
298-
a-link__jump">
299-
Download transcript
300-
</a>
301-
</p>
302-
{% endif %}
303-
</div>
304-
{% endif %}
305-
{% endmacro %}

cfgov/v1/jinja2/v1/events/event.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424

2525
{% block content_main %}
2626
{% include 'v1/events/_event-detail.html' %}
27-
{% from 'v1/events/_macros.html' import event_media as event_media with context %}
28-
{% if event_state and event_state != 'future' %}
29-
{{ event_media(page) }}
30-
{% endif %}
3127

3228
{% if page.agenda_items %}
3329
{% from 'v1/events/_macros.html' import event_agenda as event_agenda with context%}

0 commit comments

Comments
 (0)