{% extends "base.html" %} {% load cms_tags sekizai_tags staticfiles pbsmm_tags %} {% block content %}

Show Detail Page - {{ show.title }}

THIS IS THE SKELETON TEMPLATE FROM THE PBSMMAPI APP

FIELDS

Some come from PBS MM, others are generated by the back end. Many won't be needed.
ParameterValue
Absolute URL{{ show.get_absolute_url }}
Audience{{ show.audience }}
Available to Public{{ show.available_to_public }}
Can Embed Player{{ show.can_embed_player }}
Description (short){{ show.description_short }}
Description (long){{ show.description_long }}
Display Episode Number{{ show.display_episode_number }}
Episode Count{{ show.episode_count }}
Funder Message{{ show.funder_message }}
GA Event{{ show.ga_event }}
GA Page{{ show.ga_page }}
Genre{{ show.genre }}
Hashtag{{ show.hashtag }}
Is Publicly Available? (set in Admin){{ show.is_publicly_available }}
Language{{ show.language }}
NOLA{{ site.nola }}
Ordinal Season (flag){{ show.ordinal_season }}
Platforms{{ show.platforms }}
Premiered On{{ show.premiered_on }}
Serializable Value{{ show.serializable_value }}
Slug{{ show.slug }}
Sort Episodes Descending{{ show.sort_episodes_descending }}
Title{{ show.title }}
Title (sortable){{ show.sortable_title }}
Testing JSON splitter:
Genre: {{ show.genre }}
Genre title: {{ show.genre|extract_from_json:"title" }}
Platform slug: {{ show.platforms|extract_from_json:"slug" }}

SEASONS AND EPISODES

{% if show.seasons.count %} {% for season in show.seasons.all %} {% for episode in season.episodes.all %} {% endfor %} {% endfor %}
Season / Episodes Admin # Assets Publish Status
Season {{ season.ordinal }}: {{ season.printable_title }} Admin  {{ season.assets.all|length }} {{ season.show_publish_status }}
  {{ season.ordinal|stringformat:"02d"}}{{ episode.ordinal|stringformat:"02d"}} {{ episode.title }} Admin  {{ episode.assets.all|length }} {{ episode.show_publish_status }}
{% else %}

There are no seasons

{% endif %}

SPECIALS

{% if show.specials.count %} {% for special in show.specials.all %} {% endfor %}
Special Title Admin # Assets Publish Status
{{ special.title }} Admin {{ special.assets.all|length }} {{ special.show_publish_status }}
{% else %}

There are no Specials

{% endif %}

SHOW ASSETS

{% if show.assets.count %}

The highlighted on is the one that would appear as the default "show.default_asset". It can be changed in the ShowAsset admin by changing the "OVERRIDE DEFAILT ASSET" to "yes".

{% for asset in show.assets.all %} {% endfor %}
TitleTypeDurationAdmin
{{ asset.title }} {{ asset.object_type }} {{ asset.formatted_duration }} Admin

Default Asset Player

{{ show.default_asset.player_code }}
{{ show.default_asset.player_code|safe }}
{% else %}

There are no assets.

{% endif %}

IMAGES

Here are the images associated with the Show I need to create a template tag that can read the stored JSON and return things. But there are also properties for getting the canonical image. {{ show.images }}

Image List

{% comment %} I'm being lazy and just spitting out the table I made for the admin. It has been a long day.{% endcomment %} {{ show.pretty_image_list|safe }}
Canonical Image Type Override: {{ show.canonical_image_type_override }}
Canonical Image: {% endblock content %}