AgPerry's picture
Add files using upload-large-folder tool
a11165b verified
Raw History Blame Contribute Delete
896 Bytes
{% macro poster_card(title, rank=None, compact=False) -%}
<article class="catalog-card{% if compact %} is-compact{% endif %}" data-title-id="{{ title.id }}">
<a class="catalog-poster" href="/title/{{ title.id }}/">
<img src="{{ title.card }}" alt="{{ title.title }} poster" width="280" height="414" loading="lazy">
{% if rank %}<span class="catalog-rank" aria-label="Rank {{ rank }}">{{ rank }}</span>{% endif %}
</a>
<div class="catalog-card-body">
<p class="catalog-score"><span aria-hidden="true">★</span> {{ title.imdb_rating }}</p>
<h3><a href="/title/{{ title.id }}/">{{ title.title }}</a></h3>
<p>{{ title.year }} · {{ title.title_type|default('movie')|title }}</p>
</div>
</article>
{%- endmacro %}
{% macro unavailable_boundary(label) -%}
<span class="unavailable-boundary" role="note">{{ label }} is not available in this version.</span>
{%- endmacro %}