File size: 896 Bytes
a11165b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% 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 %}