<div class="credits_block">

{%- if series.credits[creditsblock].heading is defined %}
<h3 class="credits_heading">{{series.credits[creditsblock].heading}}</h3>
{%- endif %}

<div class="basic_credits">
{%- for key,creditgroup in episode.credits[creditsblock].items() %}
<div>
<p class="credit">
<span class="creditlabel">{{series.credits[creditsblock].labels[key]}}</span><br/>
{%- for creditname in creditgroup %}
<p>{{creditname}}</p>
{%- endfor %}
</div>
{%- endfor %}
</div>
</div>
