{% macro optional_metadata(label, metadata_value, display_text=None) %} {%- if metadata_value %} {%- if display_text == None %}{% set display_text = metadata_value %}{% endif %} {{ label }}: {{ display_text }} {% endif %} {% endmacro %} {% filter condense %} {# title line #} {% if podfic.from_user or podfic.for_user %}

{% if podfic.from_user %} From {{ podfic.from_user|userlinks }} {% if podfic.for_user %} , for {{ podfic.for_user|userlinks }} {% endif %} {% else %} For {{ podfic.for_user|userlinks }} {% endif %}

{% endif %} {% endfilter %} {% filter condense %} {# cover art #} {% filter condense %} {% if podfic.cover_art %}
{% endif %} {% endfilter %} {% if podfic.cover_art and podfic.editor %}
{% endif %} {% filter condense %} {% if podfic.cover_artist %} Cover artwork by {{ podfic.cover_artist|userlinks }} {% endif %} {% endfilter %} {% filter condense %} {% if podfic.editor %} Edited by {{ podfic.editor|userlinks }} {% endif %} {% endfilter %} {% if (podfic.editor and podfic.podbook_compiler) or (podfic.podbook_compiler and podfic.cover_art) %}
{% endif %} {% filter condense %} {% if podfic.podbook_compiler %} Podbook compiled by {{ podfic.podbook_compiler|userlinks }} {% endif %} {% endfilter %} {% endfilter %} {% set display_text = '{1}'.format(podfic.title_link, podfic.title) %} {{ optional_metadata("Title", metadata_value=podfic.title, display_text=display_text) }} {% set metadata_value = podfic.authors|userlinks %} {{ optional_metadata("Authors", podfic.authors|userlinks) }} {{ optional_metadata("Fandom", podfic.fandom) }} {{ optional_metadata("Pairing", podfic.pairing) }} {{ optional_metadata("Warnings", podfic.warnings) }} {{ optional_metadata("Length", podfic.length)}}
Download{% if podfic.mp3_link and podfic.podbook_link %}s{% endif %}: {% if podfic.mp3_link %}MP3{% endif %}{% if podfic.mp3_link and podfic.podbook_link %} | {{'\n'}}{% endif %} {% if podfic.podbook_link %}Podbook{% endif %}{% if podfic.ao3_link and podfic.podbook_link %} | {{'\n'}}{% endif %} {% if podfic.ao3_link %}at AO3{{'\n'}}{% endif -%} {{'\n'}}