Download tasks/imdb/environment/reference/clone/frontend/templates/_macros.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 896 Bytes
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/imdb/environment/reference/clone/frontend/templates/_macros.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/imdb/environment/reference/clone/frontend/templates/_macros.html
-
curl -L -o _macros.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/imdb/environment/reference/clone/frontend/templates/_macros.html
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 %} | |