episode_detail.html 951 Bytes
Newer Older
Simon Daron's avatar
Simon Daron committed
1
{% extends "emissions/emission_detail.html" %}
2
{% load paniktags staticfiles soundfiles %}
fred's avatar
fred committed
3
{% block title %}{{ episode.title }} - {{ episode.emission.title }} {% endblock %}
4

fred's avatar
fred committed
5 6 7 8 9 10
{% block head %}
<meta property="og:title" content="{{ episode.emission.title }} - {{ episode.title }}" />
{% if episode.image %}
<meta property="og:image" content="{{ episode.image.url }}" />
{% elif episode.emission.image %}
<meta property="og:image" content="{{ episode.emission.image.url }}" />
fred's avatar
fred committed
11 12
{% else %}
<meta property="og:image" content="{% static 'img/Radio_Panik_Logo_2016-01.png' %}" />
fred's avatar
fred committed
13
{% endif %}
14 15 16
{% if episode.subtitle %}
<meta property="og:description" content="{{ episode.subtitle }}" />
{% endif %}
17 18 19 20
{% if episode.main_sound %}
<meta property="og:audio" content="{{ episode.main_sound|format_url:'ogg' }}"/>
<meta property="og:audio:type" content="audio/ogg"/>
{% endif %}
fred's avatar
fred committed
21 22
{% endblock %}

23 24 25
{% block related %}
{% related_objects object=episode %}
{% endblock %}