Download tasks/imdb/solution/site/implementation/clone/frontend/templates/media.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 2.42 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/imdb/solution/site/implementation/clone/frontend/templates/media.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/imdb/solution/site/implementation/clone/frontend/templates/media.html
-
curl -L -o media.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/imdb/solution/site/implementation/clone/frontend/templates/media.html
2.42 kB
| {% extends "base.html" %} | |
| {% from "_macros.html" import unavailable_boundary %} | |
| {% block content %} | |
| <section class="directory-page media-page" data-title-id="{{ title.id }}"> | |
| <nav class="breadcrumb" aria-label="Breadcrumb"><a href="/title/{{ title.id }}/">{{ title.title }}</a><span>Media</span></nav> | |
| <h1>{{ title.title }}: Photos and videos</h1> | |
| {% if media %} | |
| <div class="media-gallery" data-gallery> | |
| {% for item in media %} | |
| <figure data-media-id="{{ item.id }}" data-media-type="{{ item.type }}"> | |
| {% if item.type == 'video' %} | |
| <button type="button" class="gallery-open" data-gallery-open="{{ loop.index0 }}" data-gallery-type="video" data-gallery-src="{{ item.mp4_path }}" data-gallery-poster="{{ item.poster_path }}" data-gallery-captions="{{ item.captions_path }}" data-gallery-video-href="/video/{{ item.id }}/" data-gallery-caption="{{ item.caption }}" aria-label="Play {{ item.caption }} in media viewer"> | |
| <img src="{{ item.poster_path }}" alt="{{ item.caption }}" loading="lazy"><span class="media-play" aria-hidden="true">▶</span> | |
| </button> | |
| <a class="media-detail-link" href="/video/{{ item.id }}/">Open dedicated video page</a> | |
| {% else %} | |
| <button type="button" class="gallery-open" data-gallery-open="{{ loop.index0 }}" data-gallery-type="image" data-gallery-src="{{ item.local_path }}" data-gallery-caption="{{ item.caption }}" aria-label="Open {{ item.caption }}"> | |
| <img src="{{ item.local_path }}" alt="{{ item.caption }}" loading="lazy"> | |
| </button> | |
| {% endif %} | |
| <figcaption>{{ item.caption }}</figcaption> | |
| </figure> | |
| {% endfor %} | |
| </div> | |
| {% else %}<p class="empty-state">No media is available.</p>{% endif %} | |
| <div class="gallery-dialog" data-gallery-dialog role="dialog" aria-modal="true" aria-label="Media viewer" hidden> | |
| <button type="button" class="dialog-close" data-gallery-close aria-label="Close media viewer">×</button> | |
| <img data-gallery-image alt=""> | |
| <video data-gallery-video controls tabindex="0" preload="metadata" hidden> | |
| <source data-gallery-video-source type="video/mp4"> | |
| <track data-gallery-video-track kind="captions" srclang="en" label="English" default> | |
| </video> | |
| <p data-gallery-caption></p> | |
| <a data-gallery-video-page hidden>Open dedicated video page</a> | |
| </div> | |
| </section> | |
| {% endblock %} | |